mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
A 'final' was missing in the vanilla version of the 'val' usecase.
This commit is contained in:
1 parent
eec0b6ff34
commit
d5d7922801
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user