Enable FindBugs CheckRelaxingNullnessAnnotation

Also fix up warnings.
This commit is contained in:
Andrew Gaul 2015-11-13 16:22:40 -08:00
parent 22c789da9e
commit df48540cb7
3 changed files with 2 additions and 6 deletions

View File

@ -21,7 +21,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import org.jclouds.compute.domain.Image;
import org.jclouds.javax.annotation.Nullable;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
@ -46,7 +45,7 @@ public class ImagePredicates {
}
@Override
public boolean equals(@Nullable Object obj) {
public boolean equals(Object obj) {
return obj instanceof Is64BitPredicate;
}

View File

@ -18,8 +18,6 @@ package org.jclouds.collect;
import java.util.Map.Entry;
import org.jclouds.javax.annotation.Nullable;
import com.google.common.base.Objects;
@ -31,7 +29,7 @@ abstract class AbstractMapEntry<K, V> implements Entry<K, V> {
}
@Override
public boolean equals(@Nullable Object object) {
public boolean equals(Object object) {
if (object instanceof Entry) {
Entry<?, ?> that = (Entry<?, ?>) object;
return Objects.equal(this.getKey(), that.getKey()) && Objects.equal(this.getValue(), that.getValue());

View File

@ -974,7 +974,6 @@
<version>3.0.1</version>
<configuration>
<omitVisitors>
CheckRelaxingNullnessAnnotation,
CloneIdiom,
DefaultEncodingDetector,
EqualsOperandShouldHaveClassCompatibleWithThis,