Merge pull request #21691 from dreis2211

* gh-21691:
  Add Java 15 to JavaVersion enum

Closes gh-21691
pull/21732/head
Andy Wilkinson 5 years ago
commit 7b7e68a9aa

@ -66,7 +66,12 @@ public enum JavaVersion {
/**
* Java 14.
*/
FOURTEEN("14", MethodHandles.Lookup.class, "hasFullPrivilegeAccess");
FOURTEEN("14", MethodHandles.Lookup.class, "hasFullPrivilegeAccess"),
/**
* Java 15.
*/
FIFTEEN("15", CharSequence.class, "isEmpty");
private final String name;

@ -121,4 +121,10 @@ class JavaVersionTests {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.FOURTEEN);
}
@Test
@EnabledOnJre(JRE.JAVA_15)
void currentJavaVersionFifteen() {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.FIFTEEN);
}
}

Loading…
Cancel
Save