Replaced C-style array instantiation with Java-Style

This commit is contained in:
thatsIch
2015-01-01 21:15:03 +01:00
parent e38293a291
commit 8179259afa
48 changed files with 69 additions and 69 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ public class Platform
int offset = 0;
String Lvl = "";
String preFixes[] = new String[] { "k", "M", "G", "T", "P", "T", "P", "E", "Z", "Y" };
String[] preFixes = new String[] { "k", "M", "G", "T", "P", "T", "P", "E", "Z", "Y" };
String unitName = displayUnits.name();
if ( displayUnits == PowerUnits.WA )
@@ -104,7 +104,7 @@ public class AdaptorISpecialInventory extends InventoryAdaptor
if ( this.i instanceof ISidedInventory )
{
ISidedInventory sided = (ISidedInventory) this.i;
int slots[] = sided.getAccessibleSlotsFromSide( this.d.ordinal() );
int[] slots = sided.getAccessibleSlotsFromSide( this.d.ordinal() );
if ( slots == null )
return false;
@@ -276,7 +276,7 @@ public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFlu
NBTTagCompound d = new NBTTagCompound();
byte len2 = data.readByte();
byte name[] = new byte[len2];
byte[] name = new byte[len2];
data.readBytes( name, 0, len2 );
d.setString( "FluidName", new String( name, "UTF-8" ) );