Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java |
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java |
index 0973205ae90d1b2c24ef679f09e3c736ceecb340..c3b8955cac2eebe7b1f9e5dac295995181bdc0db 100644 |
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java |
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java |
@@ -275,8 +275,12 @@ public class ObjectSemanticProcessor extends SemanticProcessor { |
} |
return null; |
} |
+ if (isMethodInClass2(node, "println()", "java.io.PrintWriter")) { |
+ nameNode.setToken(token("newLine")); |
+ return null; |
+ } |
if (isMethodInClass2(node, "println(java.lang.String)", "java.io.PrintWriter")) { |
- nameNode.setToken(token("printlnObject")); |
+ nameNode.setToken(token("println")); |
return null; |
} |
if (isMethodInClass(node, "format", "java.lang.String")) { |