File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/apache/commons/lang3/time Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2525import java .time .ZoneId ;
2626import java .util .TimeZone ;
2727
28+ import org .apache .commons .lang3 .JavaVersion ;
2829import org .apache .commons .lang3 .ObjectUtils ;
2930import org .apache .commons .lang3 .SystemUtils ;
3031
3536 */
3637public class TimeZones {
3738
38- private static PrintStream NOOP = SystemUtils .IS_JAVA_25 ? createNoop () : null ;
39+ private static PrintStream NOOP = SystemUtils .isJavaVersionAtLeast ( JavaVersion . JAVA_25 ) ? createNoop () : null ;
3940
4041 /**
4142 * A public version of {@link java.util.TimeZone}'s package private {@code GMT_ID} field.
@@ -82,7 +83,7 @@ public void write(final int b) throws IOException {
8283 * @since 3.20.0
8384 */
8485 public static synchronized TimeZone getTimeZone (final String id ) {
85- if (SystemUtils .IS_JAVA_25 && NOOP != null && ZoneId .SHORT_IDS .containsKey (id )) {
86+ if (SystemUtils .isJavaVersionAtLeast ( JavaVersion . JAVA_25 ) && NOOP != null && ZoneId .SHORT_IDS .containsKey (id )) {
8687 final PrintStream ps = System .err ;
8788 if (ps != null ) {
8889 try {
You can’t perform that action at this time.
0 commit comments