Sonar Fix: NsAttrib.java 22/91122/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 10 Jul 2019 03:40:15 +0000 (09:10 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Wed, 10 Jul 2019 03:40:34 +0000 (09:10 +0530)
Moved a variable as per the java code convention

Issue-ID: AAF-866
Change-Id: If2fe01e3e22171356ed4f24066c5573e67a9187f
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java

index f5e36fa..a2cba25 100644 (file)
@@ -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<NsAttrib> v2_0_11 = new Creator<NsAttrib>() {
         @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<NsAttrib> creator, Visitor<NsAttrib> visitor) {
         trans.info().log( "query: " + creator.select() );
         ResultSet results;