Skip to content

Commit

Permalink
fix some more pmd warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Aug 25, 2024
1 parent a0b9c88 commit 7b89c83
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ public class ReferenceHolder<V,T> extends ConcurrentHashMap<V,T> implements Help
private static final long serialVersionUID = 1L;
HelperVisitor<ReferenceHolder<V,T>,V,T> hv;

/**
*
*/
public ReferenceHolder() {
}

@Override
public HelperVisitor<ReferenceHolder<V,T>,V,T> getHelperVisitor() {
return hv;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public class OpenUpdateSearchPageAction implements IWorkbenchWindowActionDelegat

private IWorkbenchWindow fWindow;

public OpenUpdateSearchPageAction() {
}

@Override
public void init(IWorkbenchWindow window) {
fWindow= window;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
* doSomeMoreWork(subMonitor.split(40)); }
*/
public class JFacePlugin extends
AbstractTool<ReferenceHolder<Integer, org.sandbox.jdt.internal.corext.fix.helper.JFacePlugin.MonitorHolder>> {
AbstractTool<ReferenceHolder<Integer, JFacePlugin.MonitorHolder>> {

public static final String CLASS_INSTANCE_CREATION = "ClassInstanceCreation"; //$NON-NLS-1$
public static final String METHODINVOCATION = "MethodInvocation"; //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public void createPackageFragmentRoot2(IProgressMonitor monitor) throws CoreExce
}
"""); //$NON-NLS-1$

String given, expected;
String given;
String expected;

JFaceCleanupCases(String given, String expected) {
this.given=given;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ public class E1 {
IStatus status = new Status(IStatus.INFO, "plugin id", "important message", null);
}"""); //$NON-NLS-1$

String given;
String expected;

PlatformStatusPatterns(String given, String expected) {
this.given=given;
this.expected=expected;
}

String given, expected;
}

@ParameterizedTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ void m(List<PropertyResourceBundle> bundles) {
+ "}\n" //$NON-NLS-1$
+ ""); //$NON-NLS-1$

String given, expected;
String given;
String expected;

While2EnhancedForLoop(String given, String expected) {
this.given=given;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public class DeclaringMethodColumn extends AbstractColumn {
private static final int bounds= 100;
private static final String title= "DeclaringMethod"; //$NON-NLS-1$

public DeclaringMethodColumn() {
}

@Override
public void createColumn(TableViewer viewer, int pos) {
// now the DeclaringMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public class DeprecatedColumn extends AbstractColumn {
private static final int bounds= 100;
private static final String title= "Deprecated"; //$NON-NLS-1$

public DeprecatedColumn() {
}

@Override
public void createColumn(TableViewer viewer, int pos) {
// now the deprecated or not checkbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public class PackageColumn extends AbstractColumn {
private static final int bounds= 100;
private static final String title= "Class and Package"; //$NON-NLS-1$

public PackageColumn() {
}

@Override
public void createColumn(TableViewer viewer, int pos) {
// now the class you find the variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public class QualifiednameColumn extends AbstractColumn {
private static final int bounds= 100;
private static final String title= "Type"; //$NON-NLS-1$

public QualifiednameColumn() {
}

@Override
public void createColumn(TableViewer viewer, int pos) {
// Second column is for the type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,4 @@ public class XMLCandidateHit {

public ASTNode whileStatement;

/**
*
*/
public XMLCandidateHit() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ void m() {
}
""");

String given;
String expected;

XMLCleanupCases(String given, String expected) {
this.given=given;
this.expected=expected;
}

String given, expected;
}

@Disabled
Expand Down

0 comments on commit 7b89c83

Please sign in to comment.