summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/music/eelf/logging/MusicLoggingServletFilter.java2
-rw-r--r--src/main/java/org/onap/music/service/impl/MusicCassaCore.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/music/eelf/logging/MusicLoggingServletFilter.java b/src/main/java/org/onap/music/eelf/logging/MusicLoggingServletFilter.java
index 0f078a97..1cac7737 100644
--- a/src/main/java/org/onap/music/eelf/logging/MusicLoggingServletFilter.java
+++ b/src/main/java/org/onap/music/eelf/logging/MusicLoggingServletFilter.java
@@ -172,7 +172,7 @@ public class MusicLoggingServletFilter implements Filter {
}
private void populateMDCAndResponseHeader(Map<String, String> headerMap, String idKey, String mdcKey,
- boolean isRequired, HttpServletResponse httpResponse) throws ServletException, IOException {
+ boolean isRequired, HttpServletResponse httpResponse) throws IOException {
idKey = idKey.trim().toUpperCase();
diff --git a/src/main/java/org/onap/music/service/impl/MusicCassaCore.java b/src/main/java/org/onap/music/service/impl/MusicCassaCore.java
index 04fcfd23..5c02d34d 100644
--- a/src/main/java/org/onap/music/service/impl/MusicCassaCore.java
+++ b/src/main/java/org/onap/music/service/impl/MusicCassaCore.java
@@ -128,7 +128,7 @@ public class MusicCassaCore implements MusicCoreService {
try {
lockReference = "" + getLockingServiceHandle().genLockRefandEnQueue(keyspace, table, lockName, locktype);
} catch (MusicLockingException | MusicServiceException | MusicQueryException e) {
- e.printStackTrace();
+ logger.error(EELFLoggerDelegate.applicationLogger, e);
throw new MusicLockingException("Unable to create lock reference. " + e.getMessage());
} catch (Exception e) {
logger.error(EELFLoggerDelegate.applicationLogger, e);
@@ -191,7 +191,7 @@ public class MusicCassaCore implements MusicCoreService {
PreparedQueryObject readQueryObject = new PreparedQueryObject();
readQueryObject.appendQueryString(query);
ResultSet results = MusicDataStoreHandle.getDSHandle().executeQuorumConsistencyGet(readQueryObject);
- if (results.all().size() != 0) {
+ if (!results.all().isEmpty()) {
logger.info("In acquire lock: Since there was a forcible release, need to sync quorum!");
try {
syncQuorum(keyspace, table, primaryKeyValue);