Changeset 31209 for other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/com/google/common/hash/BloomFilterAdvancedStrategies.java
- Timestamp:
- 2016-12-12T15:24:54+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/com/google/common/hash/BloomFilterAdvancedStrategies.java
r31207 r31209 15 15 package com.google.common.hash; 16 16 17 import static com.google.common.base.Preconditions.checkArgument;17 //import static com.google.common.base.Preconditions.checkArgument; 18 18 19 19 import com.google.common.math.LongMath; … … 23 23 import java.util.Arrays; 24 24 import javax.annotation.Nullable; 25 25 26 26 27 /** … … 214 215 return Arrays.hashCode(data); 215 216 } 217 218 public static void checkArgument(boolean expression, @Nullable Object errorMessage) { 219 if (!expression) { 220 throw new IllegalArgumentException(String.valueOf(errorMessage)); 221 } 222 } 223 public static void checkArgument( 224 boolean b, @Nullable String errorMessageTemplate, @Nullable Object p1, @Nullable Object p2) { 225 if (!b) { 226 throw new IllegalArgumentException(String.format(errorMessageTemplate, p1, p2)); 227 } 228 } 229 216 230 } 217 231 }
Note:
See TracChangeset
for help on using the changeset viewer.