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

Method checkState

output/java_guava/1.4.19/Preconditions.java:455–459  ·  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

453
454
455 public static void checkState(boolean expression) {
456 if (!expression) {
457 throw new IllegalStateException();
458 }
459 }
460
461 /**
462 * 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
setDelegatesMethod · 0.45
setValueMethod · 0.45
checkNotDoneMethod · 0.45
keyEquivalenceMethod · 0.45
initialCapacityMethod · 0.45
concurrencyLevelMethod · 0.45
setKeyStrengthMethod · 0.45
setValueStrengthMethod · 0.45
keyEquivalenceMethod · 0.45

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected