add hardcoded contracts for Guava checkArgument/checkState (IDEA-126005)

This commit is contained in:
peter
2015-04-20 17:06:34 +02:00
parent 96b1e4a3df
commit 466bd18aff
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,13 @@
import org.jetbrains.annotations.Nullable;
class Contracts {
private void check(@Nullable Object o, @Nullable Object o2) {
com.google.common.base.Preconditions.checkArgument(o != null);
com.google.common.base.Preconditions.checkState(o2 != null, "");
System.out.println(o.hashCode());
System.out.println(o2.hashCode());
}
}