The following issues were found
android/guava/src/com/google/common/reflect/TypeParameter.java
1 issues
Line: 51
*/
public abstract class TypeParameter<T> extends TypeCapture<T> {
final TypeVariable<?> typeVariable;
protected TypeParameter() {
Type type = capture();
checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
this.typeVariable = (TypeVariable<?>) type;
Reported by PMD.
android/guava/src/com/google/common/util/concurrent/AsyncFunction.java
1 issues
Line: 38
*
* <p>Throwing an exception from this method is equivalent to returning a failing {@code Future}.
*/
ListenableFuture<O> apply(@ParametricNullness I input) throws Exception;
}
Reported by PMD.
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
1 issues
Line: 44
*/
@Beta
@DoNotMock("Use ImmutableTypeToInstanceMap or MutableTypeToInstanceMap")
public interface TypeToInstanceMap<B> extends Map<TypeToken<? extends B>, B> {
/**
* Returns the value the specified class is mapped to, or {@code null} if no entry for this class
* is present. This will only return a value that was bound to this specific class, not a value
* that may have been bound to a subtype.
Reported by PMD.
android/guava-tests/test/com/google/common/primitives/TestPlatform.java
1 issues
Line: 22
import com.google.common.annotations.GwtCompatible;
@GwtCompatible(emulated = true)
class TestPlatform {
static int reduceIterationsIfGwt(int iterations) {
return iterations;
}
}
Reported by PMD.
android/guava/src/com/google/common/graph/StandardMutableGraph.java
1 issues
Line: 33
*/
@ElementTypesAreNonnullByDefault
final class StandardMutableGraph<N> extends ForwardingGraph<N> implements MutableGraph<N> {
private final MutableValueGraph<N, Presence> backingValueGraph;
/** Constructs a {@link MutableGraph} with the properties specified in {@code builder}. */
StandardMutableGraph(AbstractGraphBuilder<? super N> builder) {
this.backingValueGraph = new StandardMutableValueGraph<>(builder);
}
Reported by PMD.
android/guava/src/com/google/common/collect/ComparatorOrdering.java
1 issues
Line: 32
@ElementTypesAreNonnullByDefault
final class ComparatorOrdering<T extends @Nullable Object> extends Ordering<T>
implements Serializable {
final Comparator<T> comparator;
ComparatorOrdering(Comparator<T> comparator) {
this.comparator = checkNotNull(comparator);
}
Reported by PMD.
android/guava/src/com/google/common/graph/ValueGraph.java
1 issues
Line: 111
*/
@Beta
@ElementTypesAreNonnullByDefault
public interface ValueGraph<N, V> extends BaseGraph<N> {
//
// ValueGraph-level accessors
//
/** Returns all nodes in this graph, in the order specified by {@link #nodeOrder()}. */
Reported by PMD.
android/guava/src/com/google/common/base/FinalizableWeakReference.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.WeakReference;
import javax.annotation.CheckForNull;
/**
* Weak reference with a {@code finalizeReferent()} method which a background thread invokes after
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java
1 issues
Line: 28
*/
@GwtCompatible
public class UnhashableObject implements Comparable<UnhashableObject> {
private final int value;
public UnhashableObject(int value) {
this.value = value;
}
Reported by PMD.
guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
1 issues
Line: 73
// Keep the order here, so that PerCollectionSizeTestSuiteBuilder
// gives a predictable order of test suites.
this.implied = Helpers.copyToSet(implied);
this.numElements = null;
}
@Override
public Set<Feature<? super Collection>> getImpliedFeatures() {
return implied;
Reported by PMD.