The following issues were found
guava/src/com/google/common/io/LittleEndianDataInputStream.java
1 issues
Line: 45
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class LittleEndianDataInputStream extends FilterInputStream implements DataInput {
/**
* Creates a {@code LittleEndianDataInputStream} that wraps the given stream.
*
* @param in the stream to delegate to
Reported by PMD.
guava/src/com/google/common/io/LittleEndianDataOutputStream.java
1 issues
Line: 41
@Beta
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public final class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput {
/**
* Creates a {@code LittleEndianDataOutputStream} that wraps the given stream.
*
* @param out the stream to delegate to
Reported by PMD.
guava/src/com/google/common/collect/BaseImmutableMultimap.java
1 issues
Line: 26
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
abstract class BaseImmutableMultimap<K, V> extends AbstractMultimap<K, V> {}
Reported by PMD.
guava/src/com/google/common/io/CountingOutputStream.java
1 issues
Line: 34
@ElementTypesAreNonnullByDefault
public final class CountingOutputStream extends FilterOutputStream {
private long count;
/**
* Wraps another output stream, counting the number of bytes written.
*
* @param out the output stream to be wrapped
Reported by PMD.
guava/src/com/google/common/collect/ComparatorOrdering.java
1 issues
Line: 32
@ElementTypesAreNonnullByDefault
final class ComparatorOrdering<T extends @Nullable Object> extends Ordering<T>
implements Serializable {
final Comparator<T> comparator;
ComparatorOrdering(Comparator<T> comparator) {
this.comparator = checkNotNull(comparator);
}
Reported by PMD.
guava/src/com/google/common/collect/ArrayListMultimapGwtSerializationDependencies.java
1 issues
Line: 33
* <p>TODO(cpovirk): Consider applying this subclass approach to our other types.
*/
@GwtCompatible(emulated = true)
abstract class ArrayListMultimapGwtSerializationDependencies<K, V>
extends AbstractListMultimap<K, V> {
ArrayListMultimapGwtSerializationDependencies(Map<K, Collection<V>> map) {
super(map);
}
// TODO(cpovirk): Maybe I should have just one shared superclass for AbstractMultimap itself?
Reported by PMD.
guava/src/com/google/common/io/ByteArrayDataOutput.java
1 issues
Line: 30
*/
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public interface ByteArrayDataOutput extends DataOutput {
@Override
void write(int b);
@Override
void write(byte b[]);
Reported by PMD.
guava/src/com/google/common/base/Absent.java
1 issues
Line: 27
/** Implementation of an {@link Optional} not containing a reference. */
@GwtCompatible
@ElementTypesAreNonnullByDefault
final class Absent<T> extends Optional<T> {
static final Absent<Object> INSTANCE = new Absent<>();
@SuppressWarnings("unchecked") // implementation is "fully variant"
static <T> Optional<T> withType() {
return (Optional<T>) INSTANCE;
Reported by PMD.
guava/src/com/google/common/io/ByteArrayDataInput.java
1 issues
Line: 37
*/
@GwtIncompatible
@ElementTypesAreNonnullByDefault
public interface ByteArrayDataInput extends DataInput {
@Override
void readFully(byte b[]);
@Override
void readFully(byte b[], int off, int len);
Reported by PMD.
guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java
1 issues
Line: 36
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
abstract class AbstractSortedKeySortedSetMultimap<
K extends @Nullable Object, V extends @Nullable Object>
extends AbstractSortedSetMultimap<K, V> {
AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) {
super(map);
Reported by PMD.