Cleanup: redudant new String()
This commit is contained in:
committed by
Laurent Clouet
parent
7a0c266dc1
commit
bda6691159
@@ -352,7 +352,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
ns = job_node.getElementsByTagName("script");
|
ns = job_node.getElementsByTagName("script");
|
||||||
if (ns.getLength() != 0) {
|
if (ns.getLength() != 0) {
|
||||||
Element a_node3 = (Element) ns.item(0);
|
Element a_node3 = (Element) ns.item(0);
|
||||||
script += new String(a_node3.getTextContent());
|
script += a_node3.getTextContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ public class Windows extends OS {
|
|||||||
String[] identifier = java.lang.System.getenv("PROCESSOR_IDENTIFIER").split(" ");
|
String[] identifier = java.lang.System.getenv("PROCESSOR_IDENTIFIER").split(" ");
|
||||||
for (int i = 0; i < (identifier.length - 1); i++) {
|
for (int i = 0; i < (identifier.length - 1); i++) {
|
||||||
if (identifier[i].equals("Family")) {
|
if (identifier[i].equals("Family")) {
|
||||||
ret.setFamily(new String(identifier[i + 1]));
|
ret.setFamily(identifier[i + 1]);
|
||||||
}
|
}
|
||||||
if (identifier[i].equals("Model")) {
|
if (identifier[i].equals("Model")) {
|
||||||
ret.setModel(new String(identifier[i + 1]));
|
ret.setModel(identifier[i + 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user