| 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 f4290c065d0dd8f996f3278b6777c7473355a612..af78e101f0f26c7ab1e40843cdd34f428eb9acd3 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
|
| @@ -492,7 +492,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " Object p;",
|
| + " public Object p;",
|
| " public boolean equals(Object o) {",
|
| " return o instanceof Test && p.equals(((Test) o).p);",
|
| " }",
|
| @@ -534,8 +534,8 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " MyInterface o;",
|
| - " boolean main(Object p) {",
|
| + " public MyInterface o;",
|
| + " public boolean main(Object p) {",
|
| " return 1 == 2 && o.equals(p);",
|
| " }",
|
| "}");
|
| @@ -552,7 +552,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " Object o;",
|
| + " public Object o;",
|
| " public Class<?> main() {",
|
| " return o.getClass();",
|
| " }",
|
| @@ -570,7 +570,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " Object o;",
|
| + " public Object o;",
|
| " public int hashCode() {",
|
| " return o.hashCode();",
|
| " }",
|
| @@ -621,7 +621,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| " print(a.equals(b));",
|
| " print(!a.equals(b));",
|
| " }",
|
| - " private static void print(Object p) {",
|
| + " public static void print(Object p) {",
|
| " }",
|
| "}");
|
| runProcessor();
|
| @@ -748,7 +748,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "package test;",
|
| "import java.util.regex.*;",
|
| "public class Test {",
|
| - " void main(Pattern p, String s) {",
|
| + " public void main(Pattern p, String s) {",
|
| " Matcher m = p.matcher(s);",
|
| " }",
|
| "}");
|
| @@ -767,7 +767,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "package test;",
|
| "import java.util.regex.*;",
|
| "public class Test {",
|
| - " void main(String s) {",
|
| + " public void main(String s) {",
|
| " Pattern.compile(s);",
|
| " }",
|
| "}");
|
| @@ -885,7 +885,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " boolean main(String a, String b) {",
|
| + " public boolean main(String a, String b) {",
|
| " return a.equalsIgnoreCase(b);",
|
| " }",
|
| "}");
|
| @@ -972,7 +972,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " void main(String s) {",
|
| + " public void main(String s) {",
|
| " s.length();",
|
| " s.isEmpty();",
|
| " }",
|
| @@ -1010,7 +1010,7 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "public class Test {",
|
| - " boolean main(String a, String b) {",
|
| + " public boolean main(String a, String b) {",
|
| " return a.regionMatches(0, b, 2, 3);",
|
| " }",
|
| "}");
|
|
|