MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / UserAss3rtion

Class UserAss3rtion

spotbugsTestCases/src/java/UserAss3rtion.java:1–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class UserAss3rtion {
2 public static void makeSureItIsOK(boolean cond) {
3 if (!cond)
4 throw new IllegalStateException();
5 }
6
7 public void f(Object o) {
8 UserAss3rtion.makeSureItIsOK(o != null);
9 System.out.println(o.hashCode());
10 }
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…