The following issues were found

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

Line: 61

              @GwtCompatible
@ElementTypesAreNonnullByDefault
public interface Table<
    R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> {
  // TODO(jlevy): Consider adding methods similar to ConcurrentMap methods.

  // Accessors

  /**

            

Reported by PMD.

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

Line: 39

              @GwtCompatible
@ElementTypesAreNonnullByDefault
final class ForwardingFluentFuture<V extends @Nullable Object> extends FluentFuture<V> {
  private final ListenableFuture<V> delegate;

  ForwardingFluentFuture(ListenableFuture<V> delegate) {
    this.delegate = checkNotNull(delegate);
  }


            

Reported by PMD.

guava/src/com/google/common/collect/LinkedHashMultimapGwtSerializationDependencies.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 LinkedHashMultimapGwtSerializationDependencies<K, V>
    extends AbstractSetMultimap<K, V> {
  LinkedHashMultimapGwtSerializationDependencies(Map<K, Collection<V>> map) {
    super(map);
  }
}

            

Reported by PMD.

guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 56

                  }
  }

  public void testFutureGetThrowsFunctionException() throws Exception {
    inputFuture.set(EXCEPTION_DATA);
    listener.assertException(WRAPPED_EXCEPTION);
  }
}

            

Reported by PMD.

guava/src/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java
1 issues
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead.
Design

Line: 27

               */
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
abstract class GwtFluentFutureCatchingSpecialization<V extends @Nullable Object>
    extends AbstractFuture<V> {
  /*
   * This server copy of the class is empty. The corresponding GWT copy contains alternative
   * versions of catching() and catchingAsync() with slightly different signatures from the ones
   * found in FluentFuture.java.

            

Reported by PMD.

guava/src/com/google/common/collect/SingletonImmutableSet.java
1 issues
Ensure you override both equals() and hashCode()
Error

Line: 88

                }

  @Override
  public final int hashCode() {
    // Racy single-check.
    int code = cachedHashCode;
    if (code == 0) {
      cachedHashCode = code = element.hashCode();
    }

            

Reported by PMD.

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

Line: 55

              
  @Override
  public Spliterator<E> spliterator() {
    return Collections.singleton(element).spliterator();
  }

  @Override
  public int size() {
    return 1;

            

Reported by PMD.

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

Line: 52

                // avoid unintended usage.

  // The execution list to hold our listeners.
  private final ExecutionList executionList = new ExecutionList();

  /**
   * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code
   * Callable}.
   *

            

Reported by PMD.

guava/src/com/google/common/util/concurrent/Partially.java
1 issues
Class cannot be instantiated and does not provide any static methods or fields
Error

Line: 36

               */
@GwtCompatible
@ElementTypesAreNonnullByDefault
final class Partially {
  /**
   * The presence of this annotation on an API indicates that the method <i>may</i> be used with the
   * <a href="http://www.gwtproject.org/">Google Web Toolkit</a> (GWT) but that it has <i>some
   * restrictions</i>.
   */

            

Reported by PMD.

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

Line: 31

              @ElementTypesAreNonnullByDefault
final class LexicographicalOrdering<T extends @Nullable Object> extends Ordering<Iterable<T>>
    implements Serializable {
  final Comparator<? super T> elementOrder;

  LexicographicalOrdering(Comparator<? super T> elementOrder) {
    this.elementOrder = elementOrder;
  }


            

Reported by PMD.