The following issues were found

android/guava/src/com/google/common/util/concurrent/Service.java
1 issues
This abstract class does not have any abstract methods
Design

Line: 211

                 * @author Luke Sandberg
   * @since 15.0 (present as an interface in 13.0)
   */
  abstract class Listener {
    /**
     * Called when the service transitions from {@linkplain State#NEW NEW} to {@linkplain
     * State#STARTING STARTING}. This occurs when {@link Service#startAsync} is called the first
     * time.
     */

            

Reported by PMD.

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

Line: 59

              @Beta
@CanIgnoreReturnValue
@ElementTypesAreNonnullByDefault
public interface Hasher extends PrimitiveSink {
  @Override
  Hasher putByte(byte b);

  @Override
  Hasher putBytes(byte[] bytes);

            

Reported by PMD.

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

Line: 38

              @ElementTypesAreNonnullByDefault
abstract class AbstractUndirectedNetworkConnections<N, E> implements NetworkConnections<N, E> {
  /** Keys are edges incident to the origin node, values are the node at the other end. */
  final Map<E, N> incidentEdgeMap;

  AbstractUndirectedNetworkConnections(Map<E, N> incidentEdgeMap) {
    this.incidentEdgeMap = checkNotNull(incidentEdgeMap);
  }


            

Reported by PMD.

android/guava/src/com/google/common/collect/Hashing.java
1 issues
Avoid reassigning parameters such as 'expectedEntries'
Design

Line: 60

              
  private static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;

  static int closedTableSize(int expectedEntries, double loadFactor) {
    // Get the recommended table size.
    // Round down to the nearest power of 2.
    expectedEntries = Math.max(expectedEntries, 2);
    int tableSize = Integer.highestOneBit(expectedEntries);
    // Check to make sure that we will not exceed the maximum load factor.

            

Reported by PMD.

guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
1 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 29

               */
@GwtCompatible
public class BaseComparable implements Comparable<BaseComparable>, Serializable {
  private final String s;

  public BaseComparable(String s) {
    this.s = s;
  }


            

Reported by PMD.

android/guava/src/com/google/common/cache/AbstractLoadingCache.java
1 issues
New exception is thrown in catch block, original stack trace may be lost
Design

Line: 53

                  try {
      return get(key);
    } catch (ExecutionException e) {
      throw new UncheckedExecutionException(e.getCause());
    }
  }

  @Override
  public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {

            

Reported by PMD.

guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java
1 issues
Potential violation of Law of Demeter (object not created locally)
Design

Line: 49

                @Override
  protected List<Class<? extends AbstractTester>> getTesters() {
    List<Class<? extends AbstractTester>> testers = Helpers.copyToList(super.getTesters());
    testers.addAll(TESTERS);
    return testers;
  }
}

            

Reported by PMD.

guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java
1 issues
Potential violation of Law of Demeter (object not created locally)
Design

Line: 43

                @Override
  protected List<Class<? extends AbstractTester>> getTesters() {
    List<Class<? extends AbstractTester>> testers = Helpers.copyToList(super.getTesters());
    testers.addAll(ConcurrentMapTestSuiteBuilder.TESTERS);
    return testers;
  }

  @Override
  NavigableMapTestSuiteBuilder<K, V> subSuiteUsing(TestSortedMapGenerator<K, V> generator) {

            

Reported by PMD.

android/guava/src/com/google/common/collect/HashMultimapGwtSerializationDependencies.java
1 issues
Classes implementing Serializable should set a serialVersionUID
Error

Line: 33

               * <p>TODO(cpovirk): Consider applying this subclass approach to our other types.
 */
@GwtCompatible(emulated = true)
abstract class HashMultimapGwtSerializationDependencies<K, V> extends AbstractSetMultimap<K, V> {
  HashMultimapGwtSerializationDependencies(Map<K, Collection<V>> map) {
    super(map);
  }
}

            

Reported by PMD.

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

Line: 34

              @Beta
@ElementTypesAreNonnullByDefault
public final class HashingInputStream extends FilterInputStream {
  private final Hasher hasher;

  /**
   * Creates an input stream that hashes using the given {@link HashFunction} and delegates all data
   * read from it to the underlying {@link InputStream}.
   *

            

Reported by PMD.