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

Method storeOfNull

spotbugsTestCases/src/java/DeadStore.java:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 public void storeOfNull() {
27 for (int i = 0; i < 10; i++) {
28 HashSet<Integer> set = new HashSet<Integer>();
29 set.add(i);
30 System.out.println(set.hashCode());
31 set = null;
32 }
33 }
34
35 public int finalLocalDNR(int a) {
36 final int SCAN = 0; // <<---- complains about this line

Callers

nothing calls this directly

Calls 3

addMethod · 0.65
printlnMethod · 0.45
hashCodeMethod · 0.45

Tested by

no test coverage detected