Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Jan 16, 2025
1 parent 840502f commit c3dfcb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public abstract class RefactoringDescriptor extends org.eclipse.ltk.core.refacto
@SuppressWarnings("rawtypes")
protected final Map fArguments;

protected RefactoringDescriptor(String refactoringID, String description, String comment,
@SuppressWarnings("rawtypes") Map arguments) {
protected RefactoringDescriptor(String refactoringID, String description, String comment, @SuppressWarnings("rawtypes") Map arguments) {
super(refactoringID, null, description, comment, STRUCTURAL_CHANGE | MULTI_CHANGE);
this.fArguments = arguments;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import org.eclipse.jdt.core.refactoring.descriptors.JavaRefactoringDescriptor;

/**
* A {@link RefactoringDescriptor} specific to Java refactorings for our
* research prototypes.
*
* A {@link RefactoringDescriptor} specific to Java refactorings for our research prototypes.
*
* @author <a href="mailto:[email protected]">Raffi Khatchadourian</a>
*/
public class RefactoringDescriptor extends JavaRefactoringDescriptor {
Expand All @@ -22,8 +21,7 @@ public RefactoringDescriptor(String id, String description, String comment, Map<
super(id, null, description, comment, arguments, FLAGS);
}

public RefactoringDescriptor(String id, String project, String description, String comment,
Map<String, String> arguments) {
public RefactoringDescriptor(String id, String project, String description, String comment, Map<String, String> arguments) {
super(id, project, description, comment, arguments, FLAGS);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ protected Map<ITypeRoot, CompilationUnit> getTypeRootToCompilationUnitMap() {
return this.typeRootToCompilationUnitMap;
}

protected static void manageCompilationUnit(final TextEditBasedChangeManager manager,
CompilationUnitRewrite rewrite, IProgressMonitor monitor) throws CoreException {
protected static void manageCompilationUnit(final TextEditBasedChangeManager manager, CompilationUnitRewrite rewrite,
IProgressMonitor monitor) throws CoreException {
CompilationUnitChange change = rewrite.createChange(false, monitor);

if (change != null)
Expand Down Expand Up @@ -123,12 +123,10 @@ public Change createChange(IProgressMonitor monitor) throws CoreException, Opera

for (ICompilationUnit cu : units) {
CompilationUnit compilationUnit = this.getCompilationUnit(cu, saveProgress.split(1));
manageCompilationUnit(manager, this.getCompilationUnitRewrite(cu, compilationUnit),
saveProgress.split(1));
manageCompilationUnit(manager, this.getCompilationUnitRewrite(cu, compilationUnit), saveProgress.split(1));
}

return new DynamicValidationRefactoringChange(this.getDescriptor(), this.getProcessorName(),
manager.getAllChanges());
return new DynamicValidationRefactoringChange(this.getDescriptor(), this.getProcessorName(), manager.getAllChanges());
} finally {
this.clearCaches();
}
Expand Down

0 comments on commit c3dfcb7

Please sign in to comment.