You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LazySequence.java:28, TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK, Priority: Normal
public class LazySequence {
private final AtomicInteger sequence = new AtomicInteger();
public static final int NONE = -1;
@Nonnegative
public int next() {
return sequence.getAndIncrement();
}
@Nonnegative
public int next(@CheckForSigned int current) {
if (current >= 0)
return current;
return next();
}
}
Standard Gradle findbugs plugin: \--- com.google.code.findbugs:findbugs:3.0.1
I'm fairly sure, from the line number, that it's complaining about the fact that current reaches the sink, despite the check.
The text was updated successfully, but these errors were encountered:
LazySequence.java:28, TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK, Priority: Normal
Standard Gradle findbugs plugin:
\--- com.google.code.findbugs:findbugs:3.0.1
I'm fairly sure, from the line number, that it's complaining about the fact that
current
reaches the sink, despite the check.The text was updated successfully, but these errors were encountered: