Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2019-02-20 16:12:42 -0500
committerFred Bricon2019-02-20 16:12:42 -0500
commit7d1b966340eb2f6f1b0b18b0f2192ee1b6288b8a (patch)
treeb83438d4a0012215f24457b3830db049798f90c8
parent3f54037b4ff271b579c77e5771a226de1e339b40 (diff)
downloadm2e-core-7d1b966340eb2f6f1b0b18b0f2192ee1b6288b8a.tar.gz
m2e-core-7d1b966340eb2f6f1b0b18b0f2192ee1b6288b8a.tar.xz
m2e-core-7d1b966340eb2f6f1b0b18b0f2192ee1b6288b8a.zip
Make a bunch of constants final
Change-Id: Iaf32ca1dd9d2dfe0864f5c4882d9f0ccdd92519e Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java2
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/MavenJdtPlugin.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
index 6de31f48..5ee0169b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
@@ -46,14 +46,14 @@ import org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob;
public class WarningsPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
- public static String[][] ERROR_SEVERITIES = new String[][] {
+ public static final String[][] ERROR_SEVERITIES = new String[][] {
new String[] {Messages.MavenWarningsPreferencePage_Ignore, ProblemSeverity.ignore.toString()},
new String[] {Messages.MavenWarningsPreferencePage_Warning, ProblemSeverity.warning.toString()},
new String[] {Messages.MavenWarningsPreferencePage_Error, ProblemSeverity.error.toString()}};
private Composite parent;
- private static List<String> SENSIBLE_PREFERENCES = Arrays.asList(P_DUP_OF_PARENT_GROUPID_PB,
+ private final static List<String> SENSIBLE_PREFERENCES = Arrays.asList(P_DUP_OF_PARENT_GROUPID_PB,
P_DUP_OF_PARENT_VERSION_PB, P_NOT_COVERED_MOJO_EXECUTION_PB, P_OUT_OF_DATE_PROJECT_CONFIG_PB,
P_OVERRIDING_MANAGED_VERSION_PB);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java
index a8d906bf..5b060a73 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java
@@ -63,7 +63,7 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
public class MavenBuilderImpl {
private static Logger log = LoggerFactory.getLogger(MavenBuilderImpl.class);
- public static QualifiedName BUILD_CONTEXT_KEY = new QualifiedName(IMavenConstants.PLUGIN_ID, "BuildContext"); //$NON-NLS-1$
+ public static final QualifiedName BUILD_CONTEXT_KEY = new QualifiedName(IMavenConstants.PLUGIN_ID, "BuildContext"); //$NON-NLS-1$
private static final String BUILD_PARTICIPANT_ID_ATTR_NAME = "buildParticipantId";
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/MavenJdtPlugin.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/MavenJdtPlugin.java
index 5d22261e..c54be072 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/MavenJdtPlugin.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/MavenJdtPlugin.java
@@ -59,7 +59,7 @@ import org.eclipse.m2e.jdt.internal.launch.MavenLaunchConfigurationListener;
*/
public class MavenJdtPlugin extends Plugin {
- public static String PLUGIN_ID = "org.eclipse.m2e.jdt"; //$NON-NLS-1$
+ public static final String PLUGIN_ID = "org.eclipse.m2e.jdt"; //$NON-NLS-1$
private static MavenJdtPlugin instance;

Back to the top