Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
*/
public class RenameRefactoringPlugin extends JavaRefactoringPlugin {

private Set<ElementHandle<ExecutableElement>> allMethods = new HashSet<ElementHandle<ExecutableElement>>();
private Set<ElementHandle<ExecutableElement>> allMethods = new HashSet<>();
private Set<TreePathHandle> recordLinkedDeclarations = new HashSet<>();
private boolean doCheckName = true;
private Integer overriddenByMethodsCount = null;
Expand Down Expand Up @@ -92,9 +92,7 @@ public void run(CompilationController co) throws Exception {
}
}
}, false);
} catch (IllegalArgumentException ex) {
ex.printStackTrace();
} catch (IOException ex) {
} catch (IllegalArgumentException | IOException ex) {
ex.printStackTrace();
}
}
Expand Down Expand Up @@ -610,17 +608,15 @@ public Problem prepare(RefactoringElementsBag elements) {
Set<FileObject> a = getRelevantFiles();
fireProgressListenerStart(AbstractRefactoring.PREPARE, a.size());
TransformTask transform = new TransformTask(new RenameTransformer(treePathHandle, docTreePathHandle, refactoring, allMethods, recordLinkedDeclarations, refactoring.isSearchInComments()), treePathHandle != null && treePathHandle.getKind() == Tree.Kind.LABELED_STATEMENT ? null : treePathHandle);
Problem problem = createAndAddElements(a, transform, elements, null);
Problem problem = createAndAddElements(a, transform, elements, refactoring);
fireProgressListenerStop();
return problem;
}

private Problem willOverride(ExecutableElement method, String name, Problem problem, CompilationInfo info) {
boolean isStatic = method.getModifiers().contains(Modifier.STATIC);
TypeElement jc = (TypeElement) method.getEnclosingElement();
LinkedList supertypes = new LinkedList();

ElementUtilities ut = info.getElementUtilities();
Elements elements = info.getElements();
ExecutableElement m = null;

Expand Down
Loading