The following issues were found

guava/src/com/google/common/collect/FilteredEntrySetMultimap.java
1 issues
Potential violation of Law of Demeter (method chain calls)
Design

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/src/com/google/common/base/PairwiseEquivalence.java
1 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 27

              @ElementTypesAreNonnullByDefault
final class PairwiseEquivalence<E, T extends @Nullable E> extends Equivalence<Iterable<T>>
    implements Serializable {
  final Equivalence<E> elementEquivalence;

  PairwiseEquivalence(Equivalence<E> elementEquivalence) {
    this.elementEquivalence = Preconditions.checkNotNull(elementEquivalence);
  }


            

Reported by PMD.

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.

guava/src/com/google/common/graph/NetworkConnections.java
1 issues
This class has too many methods, consider refactoring it.
Design

Line: 32

               * @param <E> Edge parameter type
 */
@ElementTypesAreNonnullByDefault
interface NetworkConnections<N, E> {

  Set<N> adjacentNodes();

  Set<N> predecessors();


            

Reported by PMD.

guava/src/com/google/common/base/Objects.java
1 issues
Use equals() to compare object references.
Error

Line: 54

                 * java.util.Objects#equals} instead.
   */
  public static boolean equal(@CheckForNull Object a, @CheckForNull Object b) {
    return a == b || (a != null && a.equals(b));
  }

  /**
   * Generates a hash code for multiple values. The hash code is generated by calling {@link
   * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a

            

Reported by PMD.

guava/src/com/google/common/graph/Network.java
1 issues
This class has too many methods, consider refactoring it.
Design

Line: 108

              @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.

guava/src/com/google/common/graph/GraphBuilder.java
1 issues
This class has too many methods, consider refactoring it.
Design

Line: 68

              @Beta
@DoNotMock
@ElementTypesAreNonnullByDefault
public final class GraphBuilder<N> extends AbstractGraphBuilder<N> {

  /** Creates a new instance with the specified edge directionality. */
  private GraphBuilder(boolean directed) {
    super(directed);
  }

            

Reported by PMD.

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.

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.

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.