Skip to content

Commit

Permalink
Stop running TypeUtilsTest on Java < 19
Browse files Browse the repository at this point in the history
and update the goldens for https://bugs.openjdk.org/browse/JDK-8281238.

Startblock:
   unknown commit is submitted
PiperOrigin-RevId: 467930561
  • Loading branch information
cushon authored and Error Prone Team committed Aug 16, 2022
1 parent f8de0f0 commit 088a39a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public static boolean isAtLeast18() {
return FEATURE >= 18;
}

/** Returns true if the current runtime is JDK 19 or newer. */
public static boolean isAtLeast19() {
return FEATURE >= 19;
}

/**
* Returns the latest {@code --release} version.
*
Expand Down

0 comments on commit 088a39a

Please sign in to comment.