The following issues were found
android/guava/src/com/google/common/collect/TransformedIterator.java
1 issues
Line: 35
@ElementTypesAreNonnullByDefault
abstract class TransformedIterator<F extends @Nullable Object, T extends @Nullable Object>
implements Iterator<T> {
final Iterator<? extends F> backingIterator;
TransformedIterator(Iterator<? extends F> backingIterator) {
this.backingIterator = checkNotNull(backingIterator);
}
Reported by PMD.
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/LinkedHashMultimapGwtSerializationDependencies.java
1 issues
Line: 24
import java.util.Map;
@GwtCompatible(emulated = true)
abstract class LinkedHashMultimapGwtSerializationDependencies<K, V>
extends AbstractSetMultimap<K, V> {
LinkedHashMultimapGwtSerializationDependencies(Map<K, Collection<V>> map) {
super(map);
}
Reported by PMD.
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
1 issues
Line: 70
*/
@Beta
@ElementTypesAreNonnullByDefault
public final class ValueGraphBuilder<N, V> extends AbstractGraphBuilder<N> {
/** Creates a new instance with the specified edge directionality. */
private ValueGraphBuilder(boolean directed) {
super(directed);
}
Reported by PMD.
android/guava/src/com/google/common/collect/AbstractSequentialIterator.java
1 issues
Line: 45
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class AbstractSequentialIterator<T> extends UnmodifiableIterator<T> {
@CheckForNull private T nextOrNull;
/**
* Creates a new iterator with the given first element, or, if {@code firstOrNull} is null,
* creates a new empty iterator.
*/
Reported by PMD.
android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java
1 issues
Line: 39
@GwtCompatible
@ElementTypesAreNonnullByDefault
final class ForwardingFluentFuture<V extends @Nullable Object> extends FluentFuture<V> {
private final ListenableFuture<V> delegate;
ForwardingFluentFuture(ListenableFuture<V> delegate) {
this.delegate = checkNotNull(delegate);
}
Reported by PMD.
android/guava-tests/test/com/google/common/math/MathTesting.java
1 issues
Line: 247
}
}
for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
for (int direction : new int[] {1, -1}) {
double d = Double.longBitsToDouble(Double.doubleToLongBits(Math.scalb(1.0, i)) + direction);
// Math.nextUp/nextDown
if (d != Math.rint(d)) {
fractionalBuilder.add(d);
}
Reported by PMD.
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableList.java
1 issues
Line: 29
* @author Hayward Chan
*/
class RegularImmutableList<E> extends ForwardingImmutableList<E> {
private final List<E> delegate;
E forSerialization;
RegularImmutableList(List<E> delegate) {
// TODO(cpovirk): avoid redundant unmodifiableList wrapping
this.delegate = unmodifiableList(delegate);
Reported by PMD.
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java
1 issues
Line: 19
import java.util.Collection;
/** Never actually created; instead delegates to JdkBackedImmutableMultiset. */
class RegularImmutableMultiset<E> extends ImmutableMultiset<E> {
static final ImmutableMultiset<Object> EMPTY =
JdkBackedImmutableMultiset.create(ImmutableList.of());
RegularImmutableMultiset() {}
Reported by PMD.
android/guava/src/com/google/common/io/ByteArrayDataOutput.java
1 issues
Line: 30
*/
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public interface ByteArrayDataOutput extends DataOutput {
@Override
void write(int b);
@Override
void write(byte b[]);
Reported by PMD.
android/guava/src/com/google/common/base/Absent.java
1 issues
Line: 27
/** Implementation of an {@link Optional} not containing a reference. */
@GwtCompatible
@ElementTypesAreNonnullByDefault
final class Absent<T> extends Optional<T> {
static final Absent<Object> INSTANCE = new Absent<>();
@SuppressWarnings("unchecked") // implementation is "fully variant"
static <T> Optional<T> withType() {
return (Optional<T>) INSTANCE;
Reported by PMD.