Replace call to simple getter from within class with inlined version
This commit is contained in:
@@ -67,7 +67,9 @@ public enum PartRegistry
|
||||
for (PartRegistry pr : values())
|
||||
{
|
||||
if ( pr.equals( c ) )
|
||||
return pr.getName();
|
||||
{
|
||||
return pr.name;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException( "Invalid PartName" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user