Removes unnecessary NLS statements
Change-Id: I0f98422d58fb50d2eca9bf0092737cbd2939acf4
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
index 4cf0dba..95d69c9 100644
--- a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
+++ b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
@@ -1122,7 +1122,7 @@
};
fFocusAction.setText("&Show AST of active editor"); //$NON-NLS-1$
fFocusAction.setToolTipText("Show AST of active editor"); //$NON-NLS-1$
- fFocusAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_REFRESH); //$NON-NLS-1$
+ fFocusAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_REFRESH);
ASTViewImages.setImageDescriptors(fFocusAction, ASTViewImages.SETFOCUS);
fCollapseAction = new Action() {
diff --git a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/Binding.java b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/Binding.java
index cb0477d..2dc08b2 100644
--- a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/Binding.java
+++ b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/Binding.java
@@ -104,7 +104,7 @@
res.add(new Binding(this, "VARIABLE DECLARATION", variableBinding.getVariableDeclaration(), true)); //$NON-NLS-1$
res.add(new BindingProperty(this, "IS SYNTHETIC", fBinding.isSynthetic(), true)); //$NON-NLS-1$
res.add(new BindingProperty(this, "IS DEPRECATED", fBinding.isDeprecated(), true)); //$NON-NLS-1$
- res.add(new BindingProperty(this, "CONSTANT VALUE", variableBinding.getConstantValue(), true)); //$NON-NLS-1$ //$NON-NLS-2$
+ res.add(new BindingProperty(this, "CONSTANT VALUE", variableBinding.getConstantValue(), true)); //$NON-NLS-1$
res.add(new BindingProperty(this, "IS EFFECTIVELY FINAL", variableBinding.isEffectivelyFinal(), true)); //$NON-NLS-1$
break;
@@ -135,7 +135,7 @@
if (typeBinding.isClass()) kinds.append(" isClass"); //$NON-NLS-1$
if (typeBinding.isInterface()) kinds.append(" isInterface"); //$NON-NLS-1$
if (typeBinding.isEnum()) kinds.append(" isEnum"); //$NON-NLS-1$
- res.add(new BindingProperty(this, kinds, true)); //$NON-NLS-1$
+ res.add(new BindingProperty(this, kinds, true));
StringBuffer generics= new StringBuffer("GENERICS:"); //$NON-NLS-1$
if (typeBinding.isRawType()) generics.append(" isRawType"); //$NON-NLS-1$
@@ -144,7 +144,7 @@
if (!isType(typeKind, GENERIC | PARAMETRIZED)) {
generics.append(" (non-generic, non-parameterized)");
}
- res.add(new BindingProperty(this, generics, isRefType)); //$NON-NLS-1$
+ res.add(new BindingProperty(this, generics, isRefType));
res.add(new Binding(this, "ELEMENT TYPE", typeBinding.getElementType(), isType(typeKind, ARRAY_TYPE))); //$NON-NLS-1$
res.add(new Binding(this, "COMPONENT TYPE", typeBinding.getComponentType(), isType(typeKind, ARRAY_TYPE))); //$NON-NLS-1$
diff --git a/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/util/CreateStubsAction.java b/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/util/CreateStubsAction.java
index 02e2793..77712fe 100644
--- a/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/util/CreateStubsAction.java
+++ b/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/util/CreateStubsAction.java
@@ -134,7 +134,7 @@
final IStructuredSelection structuredSelection= (IStructuredSelection) selection;
Shell shell= fTargetPart.getSite().getShell();
- String initialValue= JavaTestPlugin.getDefault().getDialogSettings().get(SETTINGS_ID_STUBS_PROJECT); //$NON-NLS-1$
+ String initialValue= JavaTestPlugin.getDefault().getDialogSettings().get(SETTINGS_ID_STUBS_PROJECT);
if (initialValue == null)
initialValue = "stubs"; //$NON-NLS-1$
final InputDialog inputDialog= new InputDialog(shell, CREATE_STUBS_DIALOG_TITLE, "Target project name:", initialValue, new IInputValidator() { //$NON-NLS-1$
@@ -149,7 +149,7 @@
try {
final String name= inputDialog.getValue();
- JavaTestPlugin.getDefault().getDialogSettings().put(SETTINGS_ID_STUBS_PROJECT, name); //$NON-NLS-1$
+ JavaTestPlugin.getDefault().getDialogSettings().put(SETTINGS_ID_STUBS_PROJECT, name);
long start= System.currentTimeMillis();
ArrayList<String> defaultPackages= new ArrayList<>(Arrays.asList(DEFAULT_PACKAGES));
diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/AddUnimplementedConstructorsTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/AddUnimplementedConstructorsTest.java
index dfeeea7..4ee55a9 100644
--- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/AddUnimplementedConstructorsTest.java
+++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/AddUnimplementedConstructorsTest.java
@@ -666,7 +666,7 @@
JavaModelUtil.reconcile(testClass.getCompilationUnit());
IMethod[] existingMethods= testClass.getMethods();
- checkMethods(new String[] { "Test1"}, existingMethods); //$NON-NLS-1$ //$NON-NLS-2$
+ checkMethods(new String[] { "Test1"}, existingMethods); //$NON-NLS-1$
StringBuilder buf= new StringBuilder();
buf.append("public class Test1 extends A {\n");
@@ -702,7 +702,7 @@
JavaModelUtil.reconcile(testClass.getCompilationUnit());
IMethod[] existingMethods= testClass.getMethods();
- checkMethods(new String[] { "Test1"}, existingMethods); //$NON-NLS-1$ //$NON-NLS-2$
+ checkMethods(new String[] { "Test1"}, existingMethods); //$NON-NLS-1$
StringBuilder buf= new StringBuilder();
buf.append("public class Test1 implements A {\n");
@@ -739,7 +739,7 @@
JavaModelUtil.reconcile(testClass.getCompilationUnit());
IMethod[] createdMethods= testClass.getMethods();
- checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$ //$NON-NLS-2$
+ checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$
StringBuilder buf= new StringBuilder();
buf.append("public class Test1 extends A {\n");
@@ -822,7 +822,7 @@
JavaModelUtil.reconcile(testClass.getCompilationUnit());
IMethod[] createdMethods= testClass.getMethods();
- checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$ //$NON-NLS-2$
+ checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$
checkDefaultConstructorWithCommentWithSuper(createdMethods[0].getSource());
@@ -916,7 +916,7 @@
IMethod[] createdMethods= testClass.getMethods();
String fullSource= testClass.getCompilationUnit().getSource();
- checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$ //$NON-NLS-2$
+ checkMethods(new String[] { "Test1"}, createdMethods); //$NON-NLS-1$
StringBuilder buf= new StringBuilder();
buf.append("package ibm.util.bogus;\n");
diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/jarexport/FatJarExportTests.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/jarexport/FatJarExportTests.java
index 1c837bc..f7b06db 100644
--- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/jarexport/FatJarExportTests.java
+++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/jarexport/FatJarExportTests.java
@@ -585,7 +585,7 @@
boolean found= false;
if (libName.isEmpty()) {
libName= ((Element)xmlZipfilesets.item(i)).getAttribute("src"); //$NON-NLS-1$
- found= libName.equals(FatJarRsrcUrlBuilder.JAR_RSRC_LOADER_ZIP); //$NON-NLS-1$
+ found= libName.equals(FatJarRsrcUrlBuilder.JAR_RSRC_LOADER_ZIP);
}
for (String zipfileset : zipfilesets) {
if (libName.equals(zipfileset)) {
@@ -980,13 +980,13 @@
assertAntScript(data, antScriptLocation(getName() + "_JiJ"), //$NON-NLS-1$
new PackageLibraryHandler(),
new String[] { "TestSetupProject/bin", "testresources/externalClassFolder" }, //$NON-NLS-1$
- new String[] { "rtstubs15.jar" }); //$NON-NLS-1$ //$NON-NLS-2$
+ new String[] { "rtstubs15.jar" }); //$NON-NLS-1$
// sub-folder libraries
data= createAndRunFatJar(fProject, getName() + "_SL", true, new CopyLibraryHandler()); //$NON-NLS-1$
assertAntScript(data, antScriptLocation(getName() + "_SL"), //$NON-NLS-1$
new CopyLibraryHandler(), new String[] { "TestSetupProject/bin", "testresources/externalClassFolder" }, //$NON-NLS-1$
- new String[] { "rtstubs15.jar" }); //$NON-NLS-1$ //$NON-NLS-2$
+ new String[] { "rtstubs15.jar" }); //$NON-NLS-1$
} finally {
JavaProjectHelper.removeFromClasspath(fProject, externalRoot.getPath());
}