The following issues were found
guava/src/com/google/common/collect/EmptyImmutableListMultimap.java
1 issues
Line: 28
*/
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
class EmptyImmutableListMultimap extends ImmutableListMultimap<Object, Object> {
static final EmptyImmutableListMultimap INSTANCE = new EmptyImmutableListMultimap();
private EmptyImmutableListMultimap() {
super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
}
Reported by PMD.
guava/src/com/google/common/cache/AbstractLoadingCache.java
1 issues
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/src/com/google/common/base/VerifyException.java
1 issues
Line: 29
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
public class VerifyException extends RuntimeException {
/** Constructs a {@code VerifyException} with no message. */
public VerifyException() {}
/** Constructs a {@code VerifyException} with the message {@code message}. */
public VerifyException(@CheckForNull String message) {
Reported by PMD.
guava/src/com/google/common/base/Verify.java
1 issues
Line: 92
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class Verify {
/**
* Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no
* message otherwise.
*
* @throws VerifyException if {@code expression} is {@code false}
Reported by PMD.
guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java
1 issues
Line: 38
@ElementTypesAreNonnullByDefault
abstract class WrappingScheduledExecutorService extends WrappingExecutorService
implements ScheduledExecutorService {
final ScheduledExecutorService delegate;
protected WrappingScheduledExecutorService(ScheduledExecutorService delegate) {
super(delegate);
this.delegate = delegate;
}
Reported by PMD.
guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java
1 issues
Line: 28
*/
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
class EmptyImmutableSetMultimap extends ImmutableSetMultimap<Object, Object> {
static final EmptyImmutableSetMultimap INSTANCE = new EmptyImmutableSetMultimap();
private EmptyImmutableSetMultimap() {
super(ImmutableMap.<Object, ImmutableSet<Object>>of(), 0, null);
}
Reported by PMD.
guava/src/com/google/common/graph/ValueGraphBuilder.java
1 issues
Line: 70
*/
@Beta
@ElementTypesAreNonnullByDefault
public final class ValueGraphBuilder<N, V> extends AbstractGraphBuilder<N> {
/** Creates a new instance with the specified edge directionality. */
private ValueGraphBuilder(boolean directed) {
super(directed);
}
Reported by PMD.
guava/src/com/google/common/base/Present.java
1 issues
Line: 28
@GwtCompatible
@ElementTypesAreNonnullByDefault
final class Present<T> extends Optional<T> {
private final T reference;
Present(T reference) {
this.reference = reference;
}
Reported by PMD.
guava/src/com/google/common/graph/ValueGraph.java
1 issues
Line: 112
*/
@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.
guava/src/com/google/common/collect/ExplicitOrdering.java
1 issues
Line: 28
@GwtCompatible(serializable = true)
@ElementTypesAreNonnullByDefault
final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
final ImmutableMap<T, Integer> rankMap;
ExplicitOrdering(List<T> valuesInOrder) {
this(Maps.indexMap(valuesInOrder));
}
Reported by PMD.