Skip to content

Commit 1b59f3f

Browse files
committed
revert change in classes that maintain jdk 1.4 compatibility
1 parent ba1a105 commit 1b59f3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private static void initIIOReadFormats() {
184184
String klass = spi.getClass().getName();
185185
String format = spi.getFormatNames()[0].toLowerCase();
186186
String suffix = spi.getFileSuffixes()[0].toLowerCase();
187-
if (suffix == null || suffix.isEmpty()) {
187+
if (suffix == null || suffix.equals("")) {
188188
suffix = format;
189189
}
190190
String shortName;

src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static void initIIOWriteFormats() {
143143
String klass = spi.getClass().getName();
144144
String format = spi.getFormatNames()[0].toLowerCase();
145145
String suffix = spi.getFileSuffixes()[0].toLowerCase();
146-
if (suffix == null || suffix.isEmpty()) {
146+
if (suffix == null || suffix.equals("")) {
147147
suffix = format;
148148
}
149149
String shortName;

0 commit comments

Comments
 (0)