Skip to content

Commit b7f7220

Browse files
committed
[JDT] Remove support for removed 'JRE' execution environment
With [1] and [2] support for 'JRE-1.1' execution environment is removed from JDT respectively Equinox. Therefore M2E has no need anymore to support this exotic (and probably hardly used) execution environment. [1] - eclipse-equinox/equinox#571 [2] - eclipse-jdt/eclipse.jdt.debug#425
1 parent 5d26486 commit b7f7220

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
109109
protected static final LinkedHashMap<String, String> ENVIRONMENTS = new LinkedHashMap<>();
110110

111111
static {
112-
Set<String> supportedExecutionEnvironmentTypes = Set.of("JRE", "J2SE", "JavaSE");
112+
Set<String> supportedExecutionEnvironmentTypes = Set.of("J2SE", "JavaSE");
113113

114114
List<String> sources = new ArrayList<>();
115115

@@ -120,9 +120,9 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
120120

121121
List<String> releases = new ArrayList<>(List.of("6", "7", "8"));
122122

123-
for(var ee : JavaRuntime.getExecutionEnvironmentsManager().getExecutionEnvironments()) {
124-
var eeId = ee.getId();
125-
if(supportedExecutionEnvironmentTypes.stream().filter(type -> eeId.startsWith(type)).findAny().isEmpty()) {
123+
for(IExecutionEnvironment ee : JavaRuntime.getExecutionEnvironmentsManager().getExecutionEnvironments()) {
124+
String eeId = ee.getId();
125+
if(supportedExecutionEnvironmentTypes.stream().noneMatch(eeId::startsWith)) {
126126
continue;
127127
}
128128
Map<String, String> complianceOptions = ee.getComplianceOptions();

0 commit comments

Comments
 (0)