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

@@ -352,7 +352,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
ns = job_node.getElementsByTagName("script");
if (ns.getLength() != 0) {
Element a_node3 = (Element) ns.item(0);
script += new String(a_node3.getTextContent());
script += a_node3.getTextContent();
}
}
catch (Exception e) {

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]);
}
}
}