The following issues were found
android/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.
android/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.
android/guava/src/com/google/common/collect/ForwardingObject.java
1 issues
Line: 64
/** Returns the string representation generated by the delegate's {@code toString} method. */
@Override
public String toString() {
return delegate().toString();
}
/* No equals or hashCode. See class comments for details. */
}
Reported by PMD.
android/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.
android/guava/src/com/google/common/graph/BaseGraph.java
1 issues
Line: 28
* @param <N> Node parameter type
*/
@ElementTypesAreNonnullByDefault
interface BaseGraph<N> extends SuccessorsFunction<N>, PredecessorsFunction<N> {
//
// Graph-level accessors
//
/** Returns all nodes in this graph, in the order specified by {@link #nodeOrder()}. */
Reported by PMD.
android/guava/src/com/google/common/graph/Graph.java
1 issues
Line: 107
@Beta
@DoNotMock("Use GraphBuilder to create a real instance")
@ElementTypesAreNonnullByDefault
public interface Graph<N> extends BaseGraph<N> {
//
// Graph-level accessors
//
/** Returns all nodes in this graph, in the order specified by {@link #nodeOrder()}. */
Reported by PMD.
android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
1 issues
Line: 60
}
static void verifyThreadWasNotInterrupted() {
assertFalse(Thread.currentThread().isInterrupted());
}
static void clearInterrupt() {
Thread.interrupted();
}
Reported by PMD.
android/guava/src/com/google/common/base/Supplier.java
1 issues
Line: 59
*/
@CanIgnoreReturnValue
@ParametricNullness
T get();
}
Reported by PMD.
android/guava/src/com/google/common/graph/GraphBuilder.java
1 issues
Line: 68
@Beta
@DoNotMock
@ElementTypesAreNonnullByDefault
public final class GraphBuilder<N> extends AbstractGraphBuilder<N> {
/** Creates a new instance with the specified edge directionality. */
private GraphBuilder(boolean directed) {
super(directed);
}
Reported by PMD.
android/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.