Small cleanups
This commit is contained in:
parent
2c22015ec7
commit
acc20ee772
@ -222,7 +222,7 @@ public class Databases {
|
||||
* the provided name if unable to do so.
|
||||
*
|
||||
* @param type the material type.
|
||||
* @param baseName the base name of the material.
|
||||
* @param baseName the base name of the material.
|
||||
* @param density the density of the material.
|
||||
* @return the material object from the database or a new material.
|
||||
*/
|
||||
|
@ -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