mirror of https://github.com/apache/jclouds.git
Enable FindBugs CheckRelaxingNullnessAnnotation
Also fix up warnings.
This commit is contained in:
parent
22c789da9e
commit
df48540cb7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -974,7 +974,6 @@
|
|||
<version>3.0.1</version>
|
||||
<configuration>
|
||||
<omitVisitors>
|
||||
CheckRelaxingNullnessAnnotation,
|
||||
CloneIdiom,
|
||||
DefaultEncodingDetector,
|
||||
EqualsOperandShouldHaveClassCompatibleWithThis,
|
||||
|
|
Loading…
Reference in New Issue