Sonar Fix: VduArtifact.java 68/91268/1
authorArundathi Patil <arundpil@in.ibm.com>
Thu, 11 Jul 2019 14:15:02 +0000 (19:45 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Thu, 11 Jul 2019 14:15:34 +0000 (19:45 +0530)
Moved constructors as per Java code conventions

Issue-ID: SO-2108
Change-Id: I45dc918380e87617b712ead3f9615d4e2c47deff
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
adapters/mso-adapters-rest-interface/src/main/java/org/onap/so/adapters/vdu/VduArtifact.java

index 2f99fed..4a5a611 100644 (file)
@@ -37,6 +37,16 @@ public class VduArtifact {
     private byte[] content;
     private ArtifactType type;
 
+    // Default constructor
+    public VduArtifact() {}
+
+    // Fully specified constructor
+    public VduArtifact(String name, byte[] content, ArtifactType type) {
+        this.name = name;
+        this.content = content;
+        this.type = type;
+    }
+
     @Override
     public boolean equals(final Object other) {
         if (!(other instanceof VduArtifact)) {
@@ -52,16 +62,6 @@ public class VduArtifact {
         return new HashCodeBuilder().append(name).append(content).append(type).toHashCode();
     }
 
-    // Default constructor
-    public VduArtifact() {}
-
-    // Fully specified constructor
-    public VduArtifact(String name, byte[] content, ArtifactType type) {
-        this.name = name;
-        this.content = content;
-        this.type = type;
-    }
-
     public String getName() {
         return name;
     }