The following issues were found
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java
1 issues
Line: 35
// This reference is used both by the custom field serializer, and by the
// GWT compiler to infer the elements of the lists that needs to be
// serialized.
E element;
SingletonImmutableList(E element) {
this.delegate = singletonList(checkNotNull(element));
this.element = element;
}
Reported by PMD.
android/guava/src/com/google/common/hash/HashFunction.java
1 issues
Line: 120
*/
@Immutable
@ElementTypesAreNonnullByDefault
public interface HashFunction {
/**
* Begins a new hash code computation by returning an initialized, stateful {@code Hasher}
* instance that is ready to receive data. Example:
*
* <pre>{@code
Reported by PMD.
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SortedMultiset.java
1 issues
Line: 32
*/
@Beta
public interface SortedMultiset<E> extends Multiset<E>, SortedIterable<E> {
Comparator<? super E> comparator();
Entry<E> firstEntry();
Entry<E> lastEntry();
Reported by PMD.
android/guava/src/com/google/common/collect/Multiset.java
1 issues
Line: 85
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
public interface Multiset<E extends @Nullable Object> extends Collection<E> {
// Query Operations
/**
* Returns the total number of all occurrences of all elements in this multiset.
*
Reported by PMD.
guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java
1 issues
Line: 29
// instance. It is always safe to return the same instance because
// javascript is single-threaded, and only used by blocks that doesn't
// involve async callbacks.
return CHAR_BUFFER;
}
private Platform() {}
}
Reported by PMD.
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/DoublesMethodsForWeb.java
1 issues
Line: 21
import jsinterop.annotations.JsPackage;
/** Web specializations for {@link Doubles} methods. */
abstract class DoublesMethodsForWeb {
@JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
public static native double min(double... array);
@JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Reported by PMD.
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java
1 issues
Line: 21
import jsinterop.annotations.JsPackage;
/** Web specializations for {@link Floats} methods. */
abstract class FloatsMethodsForWeb {
@JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
public static native float min(float... array);
@JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Reported by PMD.
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/IntsMethodsForWeb.java
1 issues
Line: 21
import jsinterop.annotations.JsPackage;
/** Web specializations for {@link Ints} methods. */
abstract class IntsMethodsForWeb {
@JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
public static native int min(int... array);
@JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Reported by PMD.
android/guava/src/com/google/common/collect/Multimap.java
1 issues
Line: 163
@DoNotMock("Use ImmutableMultimap, HashMultimap, or another implementation")
@GwtCompatible
@ElementTypesAreNonnullByDefault
public interface Multimap<K extends @Nullable Object, V extends @Nullable Object> {
// Query Operations
/**
* Returns the number of key-value pairs in this multimap.
*
Reported by PMD.
android/guava/src/com/google/common/collect/LinkedHashMultiset.java
1 issues
Line: 39
*/
@GwtCompatible(serializable = true, emulated = true)
@ElementTypesAreNonnullByDefault
public final class LinkedHashMultiset<E extends @Nullable Object>
extends AbstractMapBasedMultiset<E> {
/** Creates a new, empty {@code LinkedHashMultiset} using the default initial capacity. */
public static <E extends @Nullable Object> LinkedHashMultiset<E> create() {
return create(ObjectCountHashMap.DEFAULT_SIZE);
Reported by PMD.