Sonar critical issues 51/43351/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 17 Apr 2018 13:22:10 +0000 (18:52 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 17 Apr 2018 13:22:10 +0000 (18:52 +0530)
 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>
src/main/java/com/att/nsa/cambria/metrics/publisher/CambriaPublisherUtility.java

index 8e54ee5..511053e 100644 (file)
@@ -53,7 +53,7 @@ public class CambriaPublisherUtility
                }
                catch ( UnsupportedEncodingException e )
                {
-                       throw new RuntimeException ( e );
+                       throw new AssertionError ( e );
                }
        }
 /**