Skip to content

Commit

Permalink
Delete many unnecessary wrapper CleanUp classes
Browse files Browse the repository at this point in the history
Compile error

Signed-off-by: Rob Stryker <stryker@redhat.com>

Cleanup

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Feb 9, 2024
1 parent 1f6542f commit 198768a
Show file tree
Hide file tree
Showing 45 changed files with 171 additions and 1,325 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
import org.eclipse.jdt.ui.text.java.IInvocationContext;
import org.eclipse.jdt.ui.text.java.IProblemLocation;

import org.eclipse.jdt.internal.ui.fix.UnusedCodeCleanUp;
import org.eclipse.jdt.internal.ui.fix.UnusedCodeCleanUpCore;
import org.eclipse.jdt.internal.ui.text.correction.proposals.CorrectPackageDeclarationProposalCore;

public abstract class ReorgCorrectionsBaseSubProcessor<T> {
Expand Down Expand Up @@ -180,7 +180,7 @@ public void addRemoveImportStatementProposals(IInvocationContext context, IProbl
if (fix != null) {
Map<String, String> options= new Hashtable<>();
options.put(CleanUpConstants.REMOVE_UNUSED_CODE_IMPORTS, CleanUpOptions.TRUE);
T proposal= createRemoveUnusedImportProposal(fix, new UnusedCodeCleanUp(options), IProposalRelevance.REMOVE_UNUSED_IMPORT, context);
T proposal= createRemoveUnusedImportProposal(fix, new UnusedCodeCleanUpCore(options), IProposalRelevance.REMOVE_UNUSED_IMPORT, context);
if (proposal != null)
proposals.add(proposal);
}
Expand Down Expand Up @@ -354,7 +354,7 @@ private static boolean canModifyAccessRules(IBinding binding) {

protected abstract T createOrganizeImportsProposal(String name, Change change, ICompilationUnit cu, int relevance);

protected abstract T createRemoveUnusedImportProposal(IProposableFix fix, UnusedCodeCleanUp unusedCodeCleanUp, int relevance, IInvocationContext context);
protected abstract T createRemoveUnusedImportProposal(IProposableFix fix, UnusedCodeCleanUpCore unusedCodeCleanUp, int relevance, IInvocationContext context);

public abstract T createProjectSetupFixProposal(IInvocationContext context, IProblemLocation problem, String missingType, Collection<T> proposals);

Expand Down

This file was deleted.

Loading

0 comments on commit 198768a

Please sign in to comment.