summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-17 18:52:10 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-17 18:52:10 +0530
commit32599ce8a647cc18393d40ccc51ebd59f1b19aca (patch)
treed82ff264167f10f00bcfa77769f8170e7ff6f2f6
parentfda5f3ac35cdfa6c28802344ae28bea2e3ec5c24 (diff)
Sonar critical issues
Define and throw a dedicated exception instead of using a generic one Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vaf-32hFUzlqc5ry&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java Line No-56 Change-Id: I43199346fee31ed87618c69e7f46c7ef6d0a0a69 Issue-ID: DMAAP-426 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
-rw-r--r--src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java b/src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java
index 8e54ee5..511053e 100644
--- a/src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java
+++ b/src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java
@@ -53,7 +53,7 @@ public class CambriaPublisherUtility
}
catch ( UnsupportedEncodingException e )
{
- throw new RuntimeException ( e );
+ throw new AssertionError ( e );
}
}
/**