Skip to content

Commit 189e023

Browse files
committed
Replacing call to isEmpty(), which isn't in Java 1.5.
1 parent 3875a6c commit 189e023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/I18n.java

Lines changed: 1 addition & 1 deletion
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)