Skip to content

Commit 891fb9d

Browse files
committed
Fixed bug that class "jsjava.lang.Thread" is trimmed to "g.Thread"
1 parent 1f14aae commit 891fb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public String shortenPackageName(String fullName) {
178178
name = Bindings.removeBrackets(name);
179179
int index = name.indexOf("java.lang.");
180180
char ch = 0;
181-
if (index != -1
181+
if (index == 0
182182
&& (name.indexOf('.', index + 10) == -1 || ((ch = name
183183
.charAt(index + 10)) >= 'A' && ch <= 'Z'))) {
184184
if (!fullName.startsWith("java.lang.ref")

0 commit comments

Comments
 (0)