Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java |
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java |
index fb023d5d53556fa7ec659a4c6f224b76e54ea7c0..152339307255a3065303132fb514899bcd9022c9 100644 |
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java |
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java |
@@ -454,16 +454,16 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest { |
"// filler filler filler filler filler filler filler filler filler filler", |
"package test;", |
"public class Test {", |
- " Object o;", |
+ " Object p;", |
" public boolean equals(Object o) {", |
- " return this.equals(o);", |
+ " return o instanceof Test && p.equals(((Test) o).p);", |
" }", |
"}"); |
runProcessor(); |
assertFormattedSource(// |
"class Test {", |
- " Object o;", |
- " bool operator ==(Object o) => this == o;", |
+ " Object p;", |
+ " bool operator ==(Object o) => o is Test && p == ((o as Test)).p;", |
"}"); |
} |