MCPcopy Create free account
hub / github.com/antlr/codebuff / checkState

Method checkState

corpus/java/training/guava/base/Preconditions.java:428–432  ·  view source on GitHub ↗

Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. @param expression a boolean expression @throws IllegalStateException if expression is false

(boolean expression)

Source from the content-addressed store, hash-verified

426 * @throws IllegalStateException if {@code expression} is false
427 */
428 public static void checkState(boolean expression) {
429 if (!expression) {
430 throw new IllegalStateException();
431 }
432 }
433
434 /**
435 * Ensures the truth of an expression involving the state of the calling instance, but not

Callers 15

checkAcquiredLockMethod · 0.95
runMethod · 0.95
resumeMethod · 0.95
keyEquivalenceMethod · 0.45
valueEquivalenceMethod · 0.45
initialCapacityMethod · 0.45
concurrencyLevelMethod · 0.45
maximumSizeMethod · 0.45
maximumWeightMethod · 0.45
weigherMethod · 0.45
setKeyStrengthMethod · 0.45
setValueStrengthMethod · 0.45

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected