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/ReqGenerator.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/main/java/net/curisit/securis/ReqGenerator.java b/src/main/java/net/curisit/securis/ReqGenerator.java
index f8d4a51..38716bc 100644
--- a/src/main/java/net/curisit/securis/ReqGenerator.java
+++ b/src/main/java/net/curisit/securis/ReqGenerator.java
@@ -19,7 +19,7 @@
public class ReqGenerator {
- private static final Logger log = LogManager.getLogger(ReqGenerator.class);
+ private static final Logger LOG = LogManager.getLogger(ReqGenerator.class);
private static ReqGenerator singleton = new ReqGenerator();
@@ -49,7 +49,7 @@
RequestBean req = JsonUtils.json2object(json, RequestBean.class);
return req;
} catch (IOException e) {
- log.error("Request file {} was not found or is not accesible");
+ LOG.error("Request file {} was not found or is not accesible");
throw new SeCurisException("ERROR accesing request file: " + requestFile.getAbsolutePath(), e);
}
}
@@ -67,14 +67,14 @@
json = JsonUtils.toJSON(req, true).getBytes("utf-8");
Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
} catch (UnsupportedEncodingException e) {
- log.error("Error creating json doc from request: " + req, e);
+ LOG.error("Error creating json doc from request: " + req, e);
throw new SeCurisException("Error creating json doc from request: " + req, e);
} catch (IOException e) {
- log.error("Error creating request file: " + file, e);
+ LOG.error("Error creating request file: " + file, e);
throw new SeCurisException("Error creating request file: " + file, e);
}
- log.debug("License saved in {}", file);
+ LOG.debug("License saved in {}", file);
}
@@ -87,7 +87,7 @@
String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LicenseValidator.LOGO_SECRET);
return shaLogo;
} catch (IOException e) {
- log.error("Customer logo was not found in classpath in " + logResource, e);
+ LOG.error("Customer logo was not found in classpath in " + logResource, e);
return null;
}
}
--
Gitblit v1.3.2