summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-01-28 19:59:44 +0530
committerJonathan Gathman <jonathan.gathman@att.com>2019-01-30 12:09:31 +0000
commita717a990f2392d01dd466e6eb1a51fe67e58e181 (patch)
tree81f117d56c183b5eb7531ead28e397d6e566dfb7 /auth/auth-batch/src
parent749bff255e3d7fd29d8cebaeb83eface0e587e19 (diff)
Sonar Fix: MiscID.java
Fixed sonar issues/code-smells across this file Issue-ID: AAF-734 Change-Id: I572f1e942ee9be9297b3ccdd616ca1c6d1d1eddf Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'auth/auth-batch/src')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java7
1 files changed, 4 insertions, 3 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 35f03c7c..4d46c20b 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
@@ -53,6 +53,7 @@ public class MiscID {
public String sponsor;
public String created;
public String renewal;
+ public static String SELECT_QUERY = "SELECT ";
private static final String FIELD_STRING = "id,created,sponsor,renewal";
@@ -85,15 +86,15 @@ public class MiscID {
public static void load(Trans trans, Session session ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid;",data);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid;",data);
}
public static void load(Trans trans, Session session, Map<String,MiscID> map ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid;",map);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid;",map);
}
public static void loadOne(Trans trans, Session session, String id ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid WHERE id ='" + id + "';", data);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid WHERE id ='" + id + "';", data);
}
public static void load(Trans trans, Session session, String query, Map<String,MiscID> map) {