diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-01-23 10:53:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-01-23 10:53:54 +0000 |
commit | 4a6523ac6345ad0993e58affcb8784828379b70b (patch) | |
tree | bb0a1434d9af66a55cfb8a6d5cc1323703ddeef2 /auth | |
parent | 04c0f756b1ab1c0fdf90b9c7106bb7e058ad54b8 (diff) | |
parent | da239ffab11cd24d60b74a5bbd64e6f28275dfe9 (diff) |
Merge "Multiple Sonar Fixes - MiscID.java"
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java index e30336fb..35f03c7c 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java @@ -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 ('"); |