Added suppress warnings for DOMImplStandard#dispatchEvent*
Change-Id: I8d817e79a4fd66c45b48b1e63cbe3955050becaf
(cherry picked from commit 78dd42b6ed094f51c592010d22412d6860d1e909)
diff --git a/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java b/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java
index cb76d68..9441a9c 100644
--- a/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java
+++ b/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java
@@ -37,6 +37,7 @@
sinkEventsMozilla(elem, bits);
}
+ @SuppressWarnings("deprecation")
public native void sinkEventsMozilla(Element elem, int bits) /*-{
if (bits & 0x20000) {
elem.addEventListener('DOMMouseScroll', @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent, false);
diff --git a/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java b/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
index f4fb29a..bbf1f39 100644
--- a/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
+++ b/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
@@ -217,6 +217,7 @@
sinkEventsImpl(elem, bits);
}
+ @SuppressWarnings("deprecation")
@Override
protected native void initEventSystem() /*-{
// Ensure $entry for bitfull event dispatchers
@@ -254,6 +255,7 @@
elem.addEventListener(eventTypeName, dispatcher, false);
}-*/;
+ @SuppressWarnings("deprecation")
protected native void sinkEventsImpl(Element elem, int bits) /*-{
var chMask = (elem.__eventBits || 0) ^ bits;
elem.__eventBits = bits;