MCPcopy Create free account
hub / github.com/LFYSec/MScan / foo

Method foo

src/test/resources/bugfinder/NullDeref3.java:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3public class NullDeref3 {
4
5 void foo() {
6 NullDeref3 n = new NullDeref3();
7 if (n != null) // report a RCN warning
8 System.out.println("Not null");
9 System.out.println(n.hashCode());
10 }
11
12 Object foo2(Object o) {
13 if (o == null)

Callers

nothing calls this directly

Calls 1

hashCodeMethod · 0.45

Tested by

no test coverage detected