The following issues were found
android/guava/src/com/google/common/hash/HashingOutputStream.java
1 issues
Line: 33
@Beta
@ElementTypesAreNonnullByDefault
public final class HashingOutputStream extends FilterOutputStream {
private final Hasher hasher;
/**
* Creates an output stream that hashes using the given {@link HashFunction}, and forwards all
* data written to it to the underlying {@link OutputStream}.
*
Reported by PMD.
android/guava/src/com/google/common/collect/FilteredEntrySetMultimap.java
1 issues
Line: 62
@Override
Set<Entry<K, V>> createEntries() {
return Sets.filter(unfiltered().entries(), entryPredicate());
}
@Override
public Set<Entry<K, V>> entries() {
return (Set<Entry<K, V>>) super.entries();
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/Platform.java
1 issues
Line: 31
*/
@GwtCompatible
final class Platform {
static <T> T[] clone(T[] array) {
return array.clone();
}
// Class.cast is not supported in GWT. This method is a no-op in GWT.
static void checkCast(Class<?> clazz, Object obj) {
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/QueueTestSuiteBuilder.java
1 issues
Line: 41
return new QueueTestSuiteBuilder<E>().usingGenerator(generator);
}
private boolean runCollectionTests = true;
/**
* Specify whether to skip the general collection tests. Call this method when testing a
* collection that's both a queue and a list, to avoid running the common collection tests twice.
* By default, collection tests do run.
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java
1 issues
Line: 37
*/
@GwtIncompatible
public class ReserializingTestCollectionGenerator<E> implements TestCollectionGenerator<E> {
private final TestCollectionGenerator<E> delegate;
ReserializingTestCollectionGenerator(TestCollectionGenerator<E> delegate) {
this.delegate = delegate;
}
Reported by PMD.
android/guava/src/com/google/common/collect/ExplicitOrdering.java
1 issues
Line: 28
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
final ImmutableMap<T, Integer> rankMap;
ExplicitOrdering(List<T> valuesInOrder) {
this(Maps.indexMap(valuesInOrder));
}
Reported by PMD.
android/guava/src/com/google/common/graph/Network.java
1 issues
Line: 107
@Beta
@DoNotMock("Use NetworkBuilder to create a real instance")
@ElementTypesAreNonnullByDefault
public interface Network<N, E> extends SuccessorsFunction<N>, PredecessorsFunction<N> {
//
// Network-level accessors
//
/** Returns all nodes in this network, in the order specified by {@link #nodeOrder()}. */
Reported by PMD.
android/guava/src/com/google/common/graph/NetworkConnections.java
1 issues
Line: 32
* @param <E> Edge parameter type
*/
@ElementTypesAreNonnullByDefault
interface NetworkConnections<N, E> {
Set<N> adjacentNodes();
Set<N> predecessors();
Reported by PMD.
android/guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java
1 issues
Line: 28
*/
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
class EmptyImmutableSetMultimap extends ImmutableSetMultimap<Object, Object> {
static final EmptyImmutableSetMultimap INSTANCE = new EmptyImmutableSetMultimap();
private EmptyImmutableSetMultimap() {
super(ImmutableMap.<Object, ImmutableSet<Object>>of(), 0, null);
}
Reported by PMD.
android/guava/src/com/google/common/collect/EmptyImmutableListMultimap.java
1 issues
Line: 28
*/
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
class EmptyImmutableListMultimap extends ImmutableListMultimap<Object, Object> {
static final EmptyImmutableListMultimap INSTANCE = new EmptyImmutableListMultimap();
private EmptyImmutableListMultimap() {
super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
}
Reported by PMD.