Replaced C-style array instantiation with Java-Style
This commit is contained in:
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user