Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.idea/dataSources.ids
.idea/codeStyleSettings.xml
.idea/compiler.xml
.idea/encodings.xml
.idea/modules.xml
.idea/uiDesigner.xml
.idea/libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
}

private Fix replaceMethodName(MethodInvocationTree tree, VisitorState state, String newName) {
String source = state.getSourceForNode((JCTree) tree.getMethodSelect()).toString();
String source = state.getSourceForNode((JCTree) tree.getMethodSelect());
int idx = source.lastIndexOf("contains");
String replacement =
source.substring(0, idx) + newName + source.substring(idx + "contains".length());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public boolean processLine(String line) throws IOException {
.put("title", pattern.name)
.put("summary", pattern.summary)
.put("layout", "bugpattern")
.put("category", pattern.category.toString())
.put("category", pattern.category)
.put("severity", pattern.severity.toString())
.build();
DumperOptions options = new DumperOptions();
Expand Down