Suppress warning in JsType tests. Change-Id: Id0c561aed626ba664ceeb7262230f09079d95085
diff --git a/user/super/com/google/gwt/emul/java/lang/String.java b/user/super/com/google/gwt/emul/java/lang/String.java index e03cfbf..f6abc8d 100644 --- a/user/super/com/google/gwt/emul/java/lang/String.java +++ b/user/super/com/google/gwt/emul/java/lang/String.java
@@ -37,7 +37,7 @@ * Intrinsic string class. */ // Needed to have constructors not fail compilation internally at Google -@SuppressWarnings("ReturnValueIgnored") +@SuppressWarnings({ "ReturnValueIgnored", "unusable-by-js" }) public final class String implements Comparable<String>, CharSequence, Serializable { /* TODO(jat): consider whether we want to support the following methods;
diff --git a/user/test/com/google/gwt/core/client/interop/ConcreteJsType.java b/user/test/com/google/gwt/core/client/interop/ConcreteJsType.java index 55529f1..cfb6dfc 100644 --- a/user/test/com/google/gwt/core/client/interop/ConcreteJsType.java +++ b/user/test/com/google/gwt/core/client/interop/ConcreteJsType.java
@@ -66,5 +66,6 @@ public int x() { return 101; } } + @SuppressWarnings("unusable-by-js") public A notTypeTightenedField = new AImpl1(); }
diff --git a/user/test/com/google/gwt/core/client/interop/MyClassExportsMethod.java b/user/test/com/google/gwt/core/client/interop/MyClassExportsMethod.java index 95e3989..5b010bc 100644 --- a/user/test/com/google/gwt/core/client/interop/MyClassExportsMethod.java +++ b/user/test/com/google/gwt/core/client/interop/MyClassExportsMethod.java
@@ -79,17 +79,20 @@ } // There should be no calls to this method from java. + @SuppressWarnings("unusable-by-js") @JsMethod(namespace = GLOBAL) public static void callBar(A a) { a.bar(); } // There should be a call to this method from java. + @SuppressWarnings("unusable-by-js") @JsMethod(namespace = GLOBAL) public static void callFoo(A a) { a.foo(); } + @SuppressWarnings("unusable-by-js") @JsMethod(namespace = GLOBAL) public static A newA() { return new A();
diff --git a/user/test/com/google/gwt/core/client/interop/MyExportedEnum.java b/user/test/com/google/gwt/core/client/interop/MyExportedEnum.java index e99cc7c..0e12b62 100644 --- a/user/test/com/google/gwt/core/client/interop/MyExportedEnum.java +++ b/user/test/com/google/gwt/core/client/interop/MyExportedEnum.java
@@ -31,7 +31,7 @@ public static final int publicStaticFinalField = 1; // explicitly marked @JsProperty fields must be final - // but ones that are in an exported class doesn't need to be final + // but ones that are in an exported class don't need to be final public static int publicStaticField = 2; public final int publicFinalField = 3;
diff --git a/user/test/com/google/gwt/core/client/interop/MyJsTypeThatUsesLongType.java b/user/test/com/google/gwt/core/client/interop/MyJsTypeThatUsesLongType.java index 1b2ce5b..49535ae 100644 --- a/user/test/com/google/gwt/core/client/interop/MyJsTypeThatUsesLongType.java +++ b/user/test/com/google/gwt/core/client/interop/MyJsTypeThatUsesLongType.java
@@ -23,10 +23,12 @@ @JsType public class MyJsTypeThatUsesLongType { + @SuppressWarnings("unusable-by-js") public long addLong(long a, long b) { return a + b; } + @SuppressWarnings("unusable-by-js") public static long addLongStatic(long a, long b) { return a + b; }