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

Method same2

src/test/resources/bugfinder/NullDeref2.java:37–42  ·  view source on GitHub ↗
(Object a, Object b)

Source from the content-addressed store, hash-verified

35 }
36
37 static boolean same2(Object a, Object b) {
38 if ((null == a && null == b) || a.equals(b)) // report a RCN warning
39 return true;
40 else
41 return false;
42 }
43
44 static boolean same3(Object a, Object b) {
45 if ((a == null && b == null) || a.equals(b)) // report a RCN warning

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected