Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/ObjectSemanticProcessor.java

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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")) {

Powered by Google App Engine
This is Rietveld 408576698