final variables and parameters

seeing some methods it does actually help to enforce the parameters
This commit is contained in:
thatsIch
2015-09-25 23:10:56 +02:00
parent e52400bf26
commit 410d2f1e0d
819 changed files with 9390 additions and 9396 deletions
+4 -4
View File
@@ -64,7 +64,7 @@ public class IMCHandler
this.processors.put( "add-grindable", new IMCGrinder() );
this.processors.put( "add-mattercannon-ammo", new IMCMatterCannon() );
for( TunnelType type : TunnelType.values() )
for( final TunnelType type : TunnelType.values() )
{
this.processors.put( "add-p2p-attunement-" + type.name().replace( '_', '-' ).toLowerCase( Locale.ENGLISH ), new IMCP2PAttunement() );
}
@@ -75,9 +75,9 @@ public class IMCHandler
*
* @param event Event carrying the identifier and message for the handlers
*/
public void handleIMCEvent( FMLInterModComms.IMCEvent event )
public void handleIMCEvent( final FMLInterModComms.IMCEvent event )
{
for( FMLInterModComms.IMCMessage message : event.getMessages() )
for( final FMLInterModComms.IMCMessage message : event.getMessages() )
{
final String key = message.key;
@@ -93,7 +93,7 @@ public class IMCHandler
throw new IllegalStateException( "Invalid IMC Called: " + key );
}
}
catch( Exception t )
catch( final Exception t )
{
AELog.warning( "Problem detected when processing IMC " + key + " from " + message.getSender() );
AELog.error( t );