Skip to content

Commit e7f36e4

Browse files
committed
String.format unqualified; saving j2sSwingJS.js
1 parent 4ae9de6 commit e7f36e4

File tree

5 files changed

+35
-9094
lines changed

5 files changed

+35
-9094
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTEmptyVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected final static boolean isMethodQualified(String className, String method
145145
String s = nonQualifiedClasses[i];
146146
if (className.equals(s)) {
147147
// leave selected String methods the same
148-
return (className.equals("java.lang.String") && "charAt,codePointAt,substring,indexOf,lastIndexOf,toUpperCase,toLowerCase,trim,valueOf".indexOf(methodName) < 0);
148+
return (className.equals("java.lang.String") && "charAt,codePointAt,format,substring,indexOf,lastIndexOf,toUpperCase,toLowerCase,trim,valueOf".indexOf(methodName) < 0);
149149
}
150150
}
151151
return true;

0 commit comments

Comments
 (0)