Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2017-09-11 19:03:32 -0400
committerFred Bricon2017-09-11 19:03:32 -0400
commit4b3ac59ed468448173281f482e81f847a4ed7d65 (patch)
treee2265d5020f8468871578ff4894fac2dcb5c9301 /org.eclipse.m2e.jdt
parent16c553664bfd52cc7e73b045bab43462ebf0d03a (diff)
downloadm2e-core-4b3ac59ed468448173281f482e81f847a4ed7d65.tar.gz
m2e-core-4b3ac59ed468448173281f482e81f847a4ed7d65.tar.xz
m2e-core-4b3ac59ed468448173281f482e81f847a4ed7d65.zip
Fix compilation failure in JavaProjectConversionParticipant.java
Change-Id: If45b29f5ba1f565d46f8cf65da0f9f7aa5e2d731 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.jdt')
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
index b9998659..406b0a89 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
@@ -92,6 +92,8 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private static final String CONFIGURATION_KEY = "configuration"; //$NON-NLS-1$
+ private static final String VERSION_9 = "9";//to be replaced by JavaCore.VERSION_9
+
public boolean accept(IProject project) throws CoreException {
boolean accepts = project != null && project.isAccessible() && project.hasNature(JavaCore.NATURE_ID);
return accepts;
@@ -193,7 +195,7 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private boolean canUseReleaseProperty(String source, String target) {
//source and target are guaranteed to be not null at this point
- return source.equals(target) && JavaCore.compareJavaVersions(source, JavaCore.VERSION_9) >= 0;
+ return source.equals(target) && JavaCore.compareJavaVersions(source, VERSION_9) >= 0;
}
private Plugin getOrCreateCompilerPlugin(Build build) {

Back to the top