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

Method checkArgument

output/java_guava/1.4.13/Preconditions.java:110–114  ·  view source on GitHub ↗

Ensures the truth of an expression involving one or more parameters to the calling method. @param expression a boolean expression @throws IllegalArgumentException if expression is false

(boolean expression)

Source from the content-addressed store, hash-verified

108
109
110 public static void checkArgument(boolean expression) {
111 if (!expression) {
112 throw new IllegalArgumentException();
113 }
114 }
115
116 /**
117 * Ensures the truth of an expression involving one or more parameters to the calling method.

Callers 15

setDelegatesMethod · 0.45
putInBothMapsMethod · 0.45
setValueMethod · 0.45
CacheStatsMethod · 0.45
initialCapacityMethod · 0.45
concurrencyLevelMethod · 0.45
maximumSizeMethod · 0.45
maximumWeightMethod · 0.45
expireAfterWriteMethod · 0.45
expireAfterAccessMethod · 0.45
refreshAfterWriteMethod · 0.45

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected