抽离部分java代码中的字符串,equals判断常量放在前面
This commit is contained in:
@ -89,7 +89,7 @@ public class DeviceUtils {
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
if (macSerial == null || "".equals(macSerial)) {
|
||||
if ("".equals(macSerial)) {
|
||||
try {
|
||||
return loadFileAsString("/sys/class/net/eth0/address")
|
||||
.toUpperCase().substring(0, 17);
|
||||
|
||||
Reference in New Issue
Block a user