File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/net/sf/j2s/core/astvisitors Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -563,6 +563,7 @@ public boolean visit(Assignment node) {
563563 right .accept (this );
564564 buffer .append (')' );
565565 }
566+ buffer .append (".valueOf ()" );
566567 return false ;
567568 }
568569 } else if ("char" .equals (typeBinding .getName ())) {
@@ -1226,7 +1227,7 @@ public boolean visit(InfixExpression node) {
12261227 }
12271228 }
12281229 if (simple ) {
1229- buffer .append (')' );
1230+ buffer .append (").valueOf ()" );
12301231 }
12311232 return false ;
12321233 }
@@ -1328,7 +1329,13 @@ public boolean visit(PackageDeclaration node) {
13281329 }
13291330
13301331 protected String [] skipDeclarePackages () {
1331- return new String [] {"java.lang" };
1332+ return new String [] {
1333+ "java.lang" ,
1334+ "java.lang.ref" ,
1335+ "java.lang.ref.reflect" ,
1336+ "java.lang.reflect" ,
1337+ "java.io" ,
1338+ "java.util" };
13321339 }
13331340
13341341 public void endVisit (ParenthesizedExpression node ) {
You can’t perform that action at this time.
0 commit comments