From: Arundathi Patil Date: Wed, 10 Jul 2019 03:40:15 +0000 (+0530) Subject: Sonar Fix: NsAttrib.java X-Git-Tag: 2.1.15~14^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=bcc2add2c64a0f036c8b76ac31611ab87af2fc30;p=aaf%2Fauthz.git Sonar Fix: NsAttrib.java Moved a variable as per the java code convention Issue-ID: AAF-866 Change-Id: If2fe01e3e22171356ed4f24066c5573e67a9187f Signed-off-by: Arundathi Patil --- diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java index f5e36fa1..a2cba259 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java @@ -38,14 +38,7 @@ public class NsAttrib { public final String ns; public final String key; public final String value; - - - public NsAttrib(String ns, String key, String value) { - this.ns = ns; - this.key = key; - this.value = value; - } - + public static Creator v2_0_11 = new Creator() { @Override public NsAttrib create(Row row) { @@ -58,6 +51,13 @@ public class NsAttrib { } }; + + public NsAttrib(String ns, String key, String value) { + this.ns = ns; + this.key = key; + this.value = value; + } + public static void load(Trans trans, Session session, Creator creator, Visitor visitor) { trans.info().log( "query: " + creator.select() ); ResultSet results;