Skip to content

Commit

Permalink
Incremental delete of duplicate interfaces (IMultiFixCore & ILinkedFi…
Browse files Browse the repository at this point in the history
…xCore)

- Delete internal interface IMultiFixCore & ILinkedFixCore, plus small cleanup

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
robstryker committed Feb 9, 2024
1 parent dc8daea commit 8133c17
Show file tree
Hide file tree
Showing 20 changed files with 342 additions and 496 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
* The context that contains all information required by a clean up to create a fix.
*
* @since 1.12
* @deprecated Please use CleanUpContext in the future
*/
@Deprecated
public class CleanUpContextCore {

private final ICompilationUnit fUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
* Allows to set and retrieve clean up settings for given options keys.
*
* @since 1.12
* @deprecated Please use CleanUpOptions in the future
* This class is not intended to be subclassed by clients.
*/
@Deprecated
public class CleanUpOptionsCore {

private final Map<String, String> fOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
* Specifies the requirements of a clean up.
*
* @since 1.12
* @deprecated Please use CleanUpRequirements in the future
*/
@Deprecated
final public class CleanUpRequirementsCore {

protected final boolean fRequiresAST;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
* fix one or more problems in a compilation unit.
*
* @since 1.12
* @deprecated Please use ICleanUpFix in the future
*/
@Deprecated
public interface ICleanUpFixCore {

/**
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*
* @since 1.21
*/
@SuppressWarnings("deprecation")
public class CleanUpContext extends CleanUpContextCore {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* @since 1.21
* @noextend This class is not intended to be subclassed by clients.
*/
@SuppressWarnings("deprecation")
public class CleanUpOptions extends CleanUpOptionsCore {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
* @since 1.21
*/
@SuppressWarnings("deprecation")
public interface ICleanUpFix extends ICleanUpFixCore {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.eclipse.core.runtime.IStatus;


public abstract class AbstractFixCore implements IProposableFix, ILinkedFixCore {
public abstract class AbstractFixCore implements IProposableFix, ILinkedFix {

private final String fDisplayString;

Expand All @@ -36,7 +36,7 @@ public String getDisplayString() {
}

@Override
public LinkedProposalModelCore getLinkedPositionsCore() {
public LinkedProposalModelCore getLinkedPositions() {
return null;
}

Expand Down

0 comments on commit 8133c17

Please sign in to comment.