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

Method frotz

spotbugsTestCases/src/java/Ex.java:3–11  ·  view source on GitHub ↗
(Object o, int y)

Source from the content-addressed store, hash-verified

1public class Ex {
2
3 public void frotz(Object o, int y) {
4 if (y == 6) {
5 synchronized (o) {
6 y += o.hashCode();
7 if ((y & 1) == 0)
8 throw new RuntimeException();
9 }
10 }
11 }
12
13 public void alwaysThrow() {
14 throw new RuntimeException();

Callers

nothing calls this directly

Calls 1

hashCodeMethod · 0.45

Tested by

no test coverage detected