mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
Use diamond operator everywhere
This commit is contained in:
1 parent
9812ddc4ce
commit
55c58cf5d9
140 files changed
+305
-305
No files matched your search
@@ -16,7 +16,7 @@ public class ModuleGenetics implements IInitializable {
|
||||
|
||||
public ModuleGenetics() {
|
||||
this.branches = new String[]{"Malus Maleae Amygdaloideae Rosaceae", "Musa Musaceae Zingiberales Commelinids Angiosperms", "Sorbus Maleae", "Tsuga Pinaceae", "Fraxinus Oleeae Oleaceae Lamiales Asterids Angiospems"};
|
||||
this.classifications = new ArrayList<List<String>>();
|
||||
this.classifications = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -55,7 +55,7 @@ public class ModuleGenetics implements IInitializable {
|
||||
|
||||
private void generateBranches() {
|
||||
for (final String hierarchy : this.branches) {
|
||||
final List<String> set = new ArrayList<String>();
|
||||
final List<String> set = new ArrayList<>();
|
||||
for (final String string : hierarchy.split(" ", 0)) {
|
||||
set.add(string.toLowerCase());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user