mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +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
@@ -83,7 +83,7 @@ public enum Upgrade
|
||||
|
||||
public List<String> getInfo(TileEntity tile)
|
||||
{
|
||||
List<String> ret = new ArrayList<String>();
|
||||
List<String> ret = new ArrayList<>();
|
||||
|
||||
if(tile instanceof IUpgradeTile)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public enum Upgrade
|
||||
|
||||
public List<String> getMultScaledInfo(IUpgradeTile tile)
|
||||
{
|
||||
List<String> ret = new ArrayList<String>();
|
||||
List<String> ret = new ArrayList<>();
|
||||
|
||||
if(canMultiply())
|
||||
{
|
||||
@@ -115,7 +115,7 @@ public enum Upgrade
|
||||
|
||||
public List<String> getExpScaledInfo(IUpgradeTile tile)
|
||||
{
|
||||
List<String> ret = new ArrayList<String>();
|
||||
List<String> ret = new ArrayList<>();
|
||||
|
||||
if(canMultiply())
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public enum Upgrade
|
||||
|
||||
public static Map<Upgrade, Integer> buildMap(NBTTagCompound nbtTags)
|
||||
{
|
||||
Map<Upgrade, Integer> upgrades = new HashMap<Upgrade, Integer>();
|
||||
Map<Upgrade, Integer> upgrades = new HashMap<>();
|
||||
|
||||
if(nbtTags != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user