Small cleanups
This commit is contained in:
parent
2c22015ec7
commit
acc20ee772
@ -20,8 +20,7 @@ public enum MaterialTypeDTO {
|
||||
|
||||
public static MaterialTypeDTO asDTO(Material.Type targetType) {
|
||||
MaterialTypeDTO[] values = values();
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
MaterialTypeDTO value = values[i];
|
||||
for (MaterialTypeDTO value : values) {
|
||||
if (value.corollary.equals(targetType)) {
|
||||
return value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user