Skip to content

Commit

Permalink
Remove JavaCore.getFirstJavaSourceVersionSupportedByCompiler()
Browse files Browse the repository at this point in the history
That recently added API method can be replaced by

JavaCore.getAllJavaSourceVersionsSupportedByCompiler().first()

Follow-up on eclipse-jdt#2770
  • Loading branch information
HannesWell authored and iloveeclipse committed Aug 7, 2024
1 parent 268bc63 commit 98df315
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -3374,7 +3374,6 @@ public static List<String> getAllVersions() {
*
* @return all Java source versions fully supported by Eclipse compiler
* @see #isJavaSourceVersionSupportedByCompiler(String)
* @see #getFirstJavaSourceVersionSupportedByCompiler()
* @since 3.39
*/
public static SortedSet<String> getAllJavaSourceVersionsSupportedByCompiler() {
Expand Down Expand Up @@ -3402,7 +3401,6 @@ public static boolean isSupportedJavaVersion(String version) {
*
* @return {@code true} if the given string represents Java language version is fully supported by Eclipse compiler
* @see #getAllJavaSourceVersionsSupportedByCompiler()
* @see #getFirstJavaSourceVersionSupportedByCompiler()
* @since 3.39
*/
public static boolean isJavaSourceVersionSupportedByCompiler(String version) {
Expand Down Expand Up @@ -6472,19 +6470,6 @@ public static String latestSupportedJavaVersion() {
return allVersions.get(allVersions.size() - 1);
}

/**
* First (oldest) Java source version supported by the Eclipse compiler.
* This is the first entry from {@link JavaCore#getAllJavaSourceVersionsSupportedByCompiler()}.
*
* @return first (oldest) Java source version supported by the Eclipse compiler
* @see #getAllJavaSourceVersionsSupportedByCompiler()
* @see #isJavaSourceVersionSupportedByCompiler(String)
* @since 3.39
*/
public static String getFirstJavaSourceVersionSupportedByCompiler() {
return SUPPORTED_VERSIONS.first();
}

/**
* Compares two given versions of the Java platform. The versions being compared must both be
* one of the supported values mentioned in
Expand Down

0 comments on commit 98df315

Please sign in to comment.