The following issues were found
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/HashMultimapGwtSerializationDependencies.java
1 issues
Line: 24
import java.util.Map;
@GwtCompatible(emulated = true)
abstract class HashMultimapGwtSerializationDependencies<K, V> extends AbstractSetMultimap<K, V> {
HashMultimapGwtSerializationDependencies(Map<K, Collection<V>> map) {
super(map);
}
K dummyKey;
Reported by PMD.
android/guava/src/com/google/common/collect/RangeSet.java
1 issues
Line: 56
@DoNotMock("Use ImmutableRangeSet or TreeRangeSet")
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public interface RangeSet<C extends Comparable> {
// Query methods
/** Determines whether any of this range set's member ranges contains {@code value}. */
boolean contains(C value);
Reported by PMD.
android/guava/src/com/google/common/collect/RangeMap.java
1 issues
Line: 42
@DoNotMock("Use ImmutableRangeMap or TreeRangeMap")
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public interface RangeMap<K extends Comparable, V> {
/*
* TODO(cpovirk): These docs sometimes say "map" and sometimes say "range map." Pick one, or at
* least decide on a policy for when to use which.
*/
Reported by PMD.
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumMap.java
1 issues
Line: 32
*/
final class ImmutableEnumMap<K, V> extends ForwardingImmutableMap<K, V> {
static <K, V> ImmutableMap<K, V> asImmutable(Map<K, V> map) {
for (Entry<K, V> entry : checkNotNull(map).entrySet()) {
checkNotNull(entry.getKey());
checkNotNull(entry.getValue());
}
return new ImmutableEnumMap<K, V>(map);
}
Reported by PMD.
android/guava/src/com/google/common/io/CountingOutputStream.java
1 issues
Line: 34
@ElementTypesAreNonnullByDefault
public final class CountingOutputStream extends FilterOutputStream {
private long count;
/**
* Wraps another output stream, counting the number of bytes written.
*
* @param out the output stream to be wrapped
Reported by PMD.
android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java
1 issues
Line: 38
@ElementTypesAreNonnullByDefault
abstract class WrappingScheduledExecutorService extends WrappingExecutorService
implements ScheduledExecutorService {
final ScheduledExecutorService delegate;
protected WrappingScheduledExecutorService(ScheduledExecutorService delegate) {
super(delegate);
this.delegate = delegate;
}
Reported by PMD.
android/guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java
1 issues
Line: 36
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
abstract class AbstractSortedKeySortedSetMultimap<
K extends @Nullable Object, V extends @Nullable Object>
extends AbstractSortedSetMultimap<K, V> {
AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) {
super(map);
Reported by PMD.
android/guava/src/com/google/common/collect/Table.java
1 issues
Line: 61
@GwtCompatible
@ElementTypesAreNonnullByDefault
public interface Table<
R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> {
// TODO(jlevy): Consider adding methods similar to ConcurrentMap methods.
// Accessors
/**
Reported by PMD.
android/guava/src/com/google/common/base/FinalizableSoftReference.java
1 issues
Line: 18
package com.google.common.base;
import com.google.common.annotations.GwtIncompatible;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
import javax.annotation.CheckForNull;
/**
* Soft reference with a {@code finalizeReferent()} method which a background thread invokes after
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java
1 issues
Line: 37
}
protected void initThreeCopies() {
collection = getSubjectGenerator().create(e0(), e0(), e0());
}
}
Reported by PMD.