A 'final' was missing in the vanilla version of the 'val' usecase.

This commit is contained in:
Reinier Zwitserloot committed 2011-06-29 01:33:26 +02:00
1 parent eec0b6ff34
commit d5d7922801
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ public class ValExample {
public String example() {
final ArrayList<String> example = new ArrayList<String>();
example.add("Hello, World!");
String foo = example.get(0);
final String foo = example.get(0);
return foo.toLowerCase();
}