Suppress use of reference equality on boxed primitive types.
package com.google.gwt.emultest.java.util;
import com.google.gwt.junit.client.GWTTestCase;
-
import java.util.Comparator;
import java.util.Objects;
@@ -31,8 +30,9 @@ public class ObjectsTest extends GWTTestCase {
}
public void testCompare() {
- Comparator<Integer> intComparator = new Comparator<Integer>() {
- @SuppressWarnings("NumberEquality")
+ Comparator<Integer> intComparator =
+ new Comparator<Integer>() {
+ @SuppressWarnings({"BoxedPrimitiveEquality", "NumberEquality"})
@Override
public int compare(Integer a, Integer b) {
if (a == b) {
