Skip to content

Commit b15d136

Browse files
committed
Replacing call to isEmpty(), which isn't in Java 1.5.
1 parent abafff3 commit b15d136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/I18n.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class I18n {
2525
static protected void init (String language) {
2626
// there might be a null pointer exception ... most likely will never happen but the jvm gets mad
2727
try {
28-
if (language == null || language.trim().isEmpty()) locale = Locale.getDefault();
28+
if (language == null || language.trim().length() == 0) locale = Locale.getDefault();
2929
else locale = new Locale(language);
3030
i18n = ResourceBundle.getBundle("processing.app.Resources", locale);
3131
} catch (java.lang.NullPointerException e) {

0 commit comments

Comments
 (0)