Sonar critical issues 69/40669/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 3 Apr 2018 09:50:54 +0000 (15:20 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 3 Apr 2018 09:50:54 +0000 (15:20 +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.dmaapclient%3AdmaapClient&open=AV4-MbQp32hFUzlqc5Z2&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/impl/MRConstants.java
Line No-47

Change-Id: If4112c62ebae83b70d6a6c657c07376738838af3
Issue-ID: DMAAP-381
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/client/impl/MRConstants.java

index 08aaa78..cb0fc31 100644 (file)
@@ -44,7 +44,7 @@ class MRConstants
                }
                catch ( UnsupportedEncodingException e )
                {
-                       throw new RuntimeException ( e );
+                       throw new IllegalArgumentException(e);
                }
        }