The following issues were found

android/guava/src/com/google/common/reflect/TypeParameter.java
1 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

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
A method/constructor should not explicitly throw java.lang.Exception
Design

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
Class contains multiple getInstance methods. Please review.
Error

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
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Design

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
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

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
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

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
This class has too many methods, consider refactoring it.
Design

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
Avoid unused imports such as 'java.lang.ref.ReferenceQueue'
Design

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
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

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
Assigning an Object to null is a code smell. Consider refactoring.
Error

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.