Refactoring
Type-safety Minor performance improvements
This commit is contained in:
@@ -165,7 +165,7 @@ public class AEFeatureHandler implements AEItemDefinition
|
||||
if ( subName.equals( "NetherQuartzTools" ) )
|
||||
return name.replace( "Quartz", "NetherQuartz" );
|
||||
|
||||
name += "." + subName;
|
||||
name += '.' + subName;
|
||||
}
|
||||
|
||||
return name;
|
||||
|
||||
@@ -24,8 +24,8 @@ import com.google.common.base.Optional;
|
||||
|
||||
public class FeatureNameExtractor
|
||||
{
|
||||
private Class<?> clazz;
|
||||
private Optional<String> subName;
|
||||
private final Class<?> clazz;
|
||||
private final Optional<String> subName;
|
||||
|
||||
public FeatureNameExtractor( Class<?> clazz, Optional<String> subName )
|
||||
{
|
||||
@@ -64,7 +64,7 @@ public class FeatureNameExtractor
|
||||
return name.replace( "Quartz", "NetherQuartz" );
|
||||
}
|
||||
|
||||
name += "." + subName;
|
||||
name += '.' + subName;
|
||||
}
|
||||
|
||||
return name;
|
||||
|
||||
@@ -26,7 +26,7 @@ import appeng.core.AEConfig;
|
||||
|
||||
public class FeaturedActiveChecker
|
||||
{
|
||||
private EnumSet<AEFeature> features;
|
||||
private final EnumSet<AEFeature> features;
|
||||
|
||||
public FeaturedActiveChecker( EnumSet<AEFeature> features )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user