From a4b1e4c32927208e92ca9895fa780e18051d3932 Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Thu, 18 Sep 2014 14:20:17 +0000
Subject: [PATCH] #0 feature - Fixed some SonarQube issues
---
src/main/java/net/curisit/securis/utils/HWInfo.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/net/curisit/securis/utils/HWInfo.java b/src/main/java/net/curisit/securis/utils/HWInfo.java
index 1baecdb..0b60796 100644
--- a/src/main/java/net/curisit/securis/utils/HWInfo.java
+++ b/src/main/java/net/curisit/securis/utils/HWInfo.java
@@ -21,7 +21,7 @@
*/
public class HWInfo {
- private static final Logger log = LogManager.getLogger(HWInfo.class);
+ private static final Logger LOG = LogManager.getLogger(HWInfo.class);
public static String getOsName() {
return System.getProperty("os.name");
@@ -47,7 +47,7 @@
for (NetworkInterface network : Collections.list(NetworkInterface.getNetworkInterfaces())) {
if (!network.isLoopback() && !network.isVirtual() && !network.isPointToPoint() && network.getHardwareAddress() != null) {
macs.add(network.getHardwareAddress());
- log.debug("Interface added {}, MAC: {}", network.getName(), network.getHardwareAddress());
+ LOG.debug("Interface added {}, MAC: {}", network.getName(), network.getHardwareAddress());
logInterface(network);
}
}
@@ -57,7 +57,7 @@
NetworkInterface network = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
if (network.getHardwareAddress() != null)
macs.add(network.getHardwareAddress());
- log.debug("Selected interface (Inet Address rule)");
+ LOG.debug("Selected interface (Inet Address rule)");
logInterface(network);
}
@@ -67,7 +67,7 @@
if (!network.isLoopback() && !network.isVirtual() && !network.isPointToPoint() && network.getHardwareAddress() != null) {
if (network.getHardwareAddress() != null)
macs.add(network.getHardwareAddress());
- log.debug("Selected interface (Any with MAC rule)");
+ LOG.debug("Selected interface (Any with MAC rule)");
logInterface(network);
break;
}
@@ -81,7 +81,7 @@
for (byte[] mac : macs) {
macAddresses.add(printMacAddress(mac));
}
- log.debug("MAC Addresses: {}", macAddresses);
+ LOG.debug("MAC Addresses: {}", macAddresses);
return macAddresses;
} catch (UnknownHostException e) {
@@ -103,10 +103,10 @@
}
private static void logInterface(NetworkInterface network) {
- log.debug("Interface name: {}", network.getName());
- log.debug("Interface display name: {}", network.getDisplayName());
+ LOG.debug("Interface name: {}", network.getName());
+ LOG.debug("Interface display name: {}", network.getDisplayName());
try {
- log.debug("Interface mac: {}", printMacAddress(network.getHardwareAddress()));
+ LOG.debug("Interface mac: {}", printMacAddress(network.getHardwareAddress()));
} catch (SocketException e) {
// Silent
}
--
Gitblit v1.3.2