diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java index 728c069242..58115199aa 100644 --- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java +++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java @@ -859,7 +859,7 @@ private String getMinimumJavaBuildEnvironmentId(ProjectConfigurationRequest requ private String getMinimumJavaBuildEnvironmentId(MavenProject mavenProject, MojoExecution mojoExecution, IProgressMonitor monitor) throws InvalidVersionSpecificationException, CoreException { String version = maven.getMojoParameterValue(mavenProject, mojoExecution, - Arrays.asList("rules", "requireJavaVersion", "version"), String.class, monitor); + List.of("rules", "requireJavaVersion", "version"), String.class, monitor); return getMinimumJavaBuildEnvironmentId(version); }