Cleanup: redudant new String()
This commit is contained in:
committed by
Laurent Clouet
parent
7a0c266dc1
commit
bda6691159
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user