void () { // Example #1 { Collection<Integer> <warning descr="Scope of variable 'list' is too broad">list</warning> = null; //scope too broad { list = new ArrayList<Integer>(); list.add(new Integer(0)); } } // Example #2 { Collection<Integer> <warning descr="Scope of variable 'list' is too broad">list</warning>; // scope too broad list = new ArrayList<Integer>(); list.add(new Integer(0)); } // Example #3 { Collection<Integer> <warning descr="Scope of variable 'list' is too broad">list</warning> = null; // nope list = new ArrayList<Integer>(); list.add(new Integer(0)); } }