Skip to content

Commit c281a05

Browse files
committed
removing java.lang.Thread from nonQualified classes
1 parent 56d8e57 commit c281a05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,11 +1526,13 @@ public static void setNoQualifiedNamePackages(String names) {
15261526
}
15271527

15281528
private final static String[] nonQualifiedClasses = new String[] {
1529-
// these are pre-defined in j2sSwingJSext.js
1529+
// these classes are called from JavaScript or represent JavaScript functions
15301530
"swingjs.JSAppletViewer",
15311531
"swingjs.JSFrameViewer",
15321532
"java.applet.AppletContext",
15331533
"java.applet.AppletStub",
1534+
1535+
// these classes need no qualification
15341536
"java.lang.Boolean",
15351537
"java.lang.Byte",
15361538
"java.lang.Character",
@@ -1544,7 +1546,8 @@ public static void setNoQualifiedNamePackages(String names) {
15441546
"java.lang.Short",
15451547
"java.lang.System",
15461548
"java.lang.String",
1547-
"java.lang.Thread",
1549+
1550+
// I have no idea why these are here
15481551
"java.util.Date", // TODO _- really???
15491552
"java.util.EventListenerProxy",
15501553
"java.util.EventObject",

0 commit comments

Comments
 (0)