Community
Participate
Working Groups
20040701 In the following code the cast to String could be marked as unnecessary. ArrayList<String> l= new ArrayList<String>(); String string = (String) l.get(0);
I am already getting the warning: 1. WARNING in X.java (at line 5) String string = (String) l.get(0); ^^^^^^^^^^^^^^^^^ Unnecessary cast to type String for expression of type String