mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Java 7 and 8 cleanup
Diamond operator <> Lambdas and method references
This commit is contained in:
1 parent
3db03edbc9
commit
b72d6efab3
234 files changed
+1614
-2253
No files matched your search
@@ -103,7 +103,7 @@ public final class MekanismUtils
|
||||
{
|
||||
public static final EnumFacing[] SIDE_DIRS = new EnumFacing[] {EnumFacing.NORTH, EnumFacing.SOUTH, EnumFacing.WEST, EnumFacing.EAST};
|
||||
|
||||
public static final Map<String, Class<?>> classesFound = new HashMap<String, Class<?>>();
|
||||
public static final Map<String, Class<?>> classesFound = new HashMap<>();
|
||||
|
||||
private static final List<UUID> warnedFails = new ArrayList<>();
|
||||
|
||||
@@ -117,7 +117,7 @@ public final class MekanismUtils
|
||||
{
|
||||
if(!Mekanism.latestVersionNumber.equals("null"))
|
||||
{
|
||||
ArrayList<IModule> list = new ArrayList<IModule>();
|
||||
ArrayList<IModule> list = new ArrayList<>();
|
||||
|
||||
for(IModule module : Mekanism.modulesLoaded)
|
||||
{
|
||||
@@ -180,7 +180,7 @@ public final class MekanismUtils
|
||||
public static List<String> getHTML(String urlToRead)
|
||||
{
|
||||
String line;
|
||||
List<String> result = new ArrayList<String>();
|
||||
List<String> result = new ArrayList<>();
|
||||
|
||||
try {
|
||||
URL url = new URL(urlToRead);
|
||||
@@ -1258,8 +1258,8 @@ public final class MekanismUtils
|
||||
renderer = stack.getItem().getFontRenderer(stack);
|
||||
}
|
||||
|
||||
List<String> words = new ArrayList<String>();
|
||||
List<String> lines = new ArrayList<String>();
|
||||
List<String> words = new ArrayList<>();
|
||||
List<String> lines = new ArrayList<>();
|
||||
|
||||
String currentWord = "";
|
||||
|
||||
@@ -1309,7 +1309,7 @@ public final class MekanismUtils
|
||||
t.printStackTrace();
|
||||
}
|
||||
|
||||
return new ArrayList<String>();
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user