Skip to content

Instantly share code, notes, and snippets.

@TheAner
Last active March 3, 2020 14:42
Show Gist options
  • Save TheAner/2c778e6b646cbf67cedef85ac423343e to your computer and use it in GitHub Desktop.
Save TheAner/2c778e6b646cbf67cedef85ac423343e to your computer and use it in GitHub Desktop.
Lombok i jego wspaniałości - https://theaner.pl/lombok-i-jego-wspanialosci/
import lombok.val;
import lombok.var;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
//Bez lomboka
ArrayList<String> list = new ArrayList<>();
final ArrayList<String> finalList = new ArrayList<>();
//Z lombokiem
var lombokList = new ArrayList<>();
val lombokFinalList = new ArrayList<>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment