The following issues were found
guava/src/com/google/common/collect/Table.java
1 issues
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
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
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
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
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
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
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
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
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
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.