From 32599ce8a647cc18393d40ccc51ebd59f1b19aca Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Tue, 17 Apr 2018 18:52:10 +0530 Subject: 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 --- .../com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/att/nsa') 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 ); } } /** -- cgit 1.2.3-korg