Cleanup: redudant new String()

This commit is contained in:
Mathis Chenuet
2015-01-28 20:00:00 +00:00
committed by Laurent Clouet
parent 7a0c266dc1
commit bda6691159
2 changed files with 3 additions and 3 deletions

View File

@@ -49,10 +49,10 @@ public class Windows extends OS {
String[] identifier = java.lang.System.getenv("PROCESSOR_IDENTIFIER").split(" ");
for (int i = 0; i < (identifier.length - 1); i++) {
if (identifier[i].equals("Family")) {
ret.setFamily(new String(identifier[i + 1]));
ret.setFamily(identifier[i + 1]);
}
if (identifier[i].equals("Model")) {
ret.setModel(new String(identifier[i + 1]));
ret.setModel(identifier[i + 1]);
}
}
}