Package com.google.gerrit.common
Class RuntimeVersion
java.lang.Object
com.google.gerrit.common.RuntimeVersion
JDK version string utilities.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanReturns true if the current runtime is JDK 17 or newer.static booleanReturns true if the current runtime is JDK 18 or newer.
- 
Method Details- 
isAtLeast17public static boolean isAtLeast17()Returns true if the current runtime is JDK 17 or newer.
- 
isAtLeast18public static boolean isAtLeast18()Returns true if the current runtime is JDK 18 or newer.
 
-