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/LicenseValidator.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/net/curisit/securis/LicenseValidator.java b/src/main/java/net/curisit/securis/LicenseValidator.java
index 2b95123..a8d9d7b 100644
--- a/src/main/java/net/curisit/securis/LicenseValidator.java
+++ b/src/main/java/net/curisit/securis/LicenseValidator.java
@@ -14,7 +14,7 @@
public class LicenseValidator {
- private static final Logger log = LogManager.getLogger(LicenseValidator.class);
+ private static final Logger LOG = LogManager.getLogger(LicenseValidator.class);
private static LicenseValidator singleton = new LicenseValidator();
protected static byte[] LOGO_SECRET;
@@ -23,7 +23,7 @@
try {
LOGO_SECRET = "Logo ipsum s3cr3t test áíóú".getBytes("utf-8");
} catch (UnsupportedEncodingException e) {
- log.error("Unexpected error getting LOGO secret", e);
+ LOG.error("Unexpected error getting LOGO secret", e);
}
}
@@ -43,14 +43,14 @@
String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LOGO_SECRET);
return shaLogo;
} catch (IOException e) {
- log.warn("Customer logo was not found in images/logo_customer.png");
+ LOG.warn("Customer logo was not found in images/logo_customer.png");
return null;
}
}
public void validateLogo(RequestBean reqBean) throws SeCurisException {
if (reqBean.getCrcLogo() == null) {
- log.info("Customer logo is not included in license file and won't be validated");
+ LOG.info("Customer logo is not included in license file and won't be validated");
} else {
String currentCRC = getCrcLogo();
if (!currentCRC.equals(reqBean.getCrcLogo()))
--
Gitblit v1.3.2