Java 7 and 8 cleanup

Diamond operator <>
Lambdas and method references
This commit is contained in:
Tom Elfring committed 2017-08-05 17:50:38 +02:00
1 parent 3db03edbc9
commit b72d6efab3
234 files changed
+1614 -2253

No files matched your search

@@ -21,7 +21,7 @@ public final class MinerVisualRenderer
{
private static Minecraft mc = Minecraft.getMinecraft();
private static Map<MinerRenderData, DisplayInteger> cachedVisuals = new HashMap<MinerRenderData, DisplayInteger>();
private static Map<MinerRenderData, DisplayInteger> cachedVisuals = new HashMap<>();
private static final double offset = 0.01;
@@ -51,7 +51,7 @@ public final class MinerVisualRenderer
DisplayInteger display = DisplayInteger.createAndStart();
cachedVisuals.put(data, display);
List<Model3D> models = new ArrayList<Model3D>();
List<Model3D> models = new ArrayList<>();
for(int x = -data.radius; x <= data.radius; x++)
{