Multiple Sonar Fixes - MiscID.java 80/76180/1
authorDriptaroop Das <driptaroop.das@in.ibm.com>
Wed, 23 Jan 2019 08:27:39 +0000 (13:57 +0530)
committerDriptaroop Das <driptaroop.das@in.ibm.com>
Wed, 23 Jan 2019 08:29:35 +0000 (13:59 +0530)
Multiple Sonar Fixes - MiscID.java

Issue-ID: AAF-728
Change-Id: I1ea8d26afa099a979f982d63bca4ca43977d3ab3
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java

index e30336f..35f03c7 100644 (file)
@@ -4,7 +4,7 @@
  * ===========================================================================
  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
  * ===========================================================================
- * Modifications Copyright (C) 2018 IBM.
+ * Modifications Copyright (C) 2019 IBM.
  * ===========================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -64,9 +64,7 @@ public class MiscID  {
      * 2) DB "suits.cql"
      * 3) Alter existing Tables
      * @param row
-     * @throws BatchException 
-     * @throws IllegalAccessException 
-     * @throws IllegalArgumentException 
+     * @throws BatchException
      */
     public void set(String[] row ) throws BatchException {
         if (row.length<4) {
@@ -140,13 +138,13 @@ public class MiscID  {
      */
     @Override
     public boolean equals(Object obj) {
-        if (obj!=null && obj instanceof MiscID) {
+        if (null!=obj && obj instanceof MiscID) {
             return id.equals(((MiscID)obj).id);
         }
         return false;
     }
 
-    public StringBuilder insertStmt() throws IllegalArgumentException, IllegalAccessException {
+    public StringBuilder insertStmt() {
         StringBuilder sb = new StringBuilder("INSERT INTO authz.miscid (");
         sb.append(FIELD_STRING);
         sb.append(") VALUES ('");