DR_SUB.java: Fixed sonar issues 53/64753/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 5 Sep 2018 13:30:07 +0000 (19:00 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Wed, 5 Sep 2018 13:30:18 +0000 (19:00 +0530)
Fixed sonar issue, move the constructor to comply with java code
conventions

Issue-ID: DMAAP-734
Change-Id: I0fa159ada0b538487e91c201fe4206396b63086a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java

index 5a768c5..e089881 100644 (file)
@@ -42,32 +42,6 @@ public class DR_Sub extends DmaapObject {
        private boolean use100;
        private boolean suspended;
        private String owner;
-       
-       public String getOwner() {
-               return owner;
-       }
-
-       public void setOwner(String owner) {
-               this.owner = owner;
-       }
-
-       public boolean isSuspended() {
-               return suspended;
-       }
-
-       public void setSuspended(boolean suspended) {
-               this.suspended = suspended;
-       }
-
-
-
-       public boolean isUse100() {
-               return use100;
-       }
-
-       public void setUse100(boolean use100) {
-               this.use100 = use100;
-       }
 
        public DR_Sub() {
 
@@ -125,6 +99,32 @@ public class DR_Sub extends DmaapObject {
 
                logger.info( "new DR_Sub returning");
        }
+       
+       public String getOwner() {
+               return owner;
+       }
+
+       public void setOwner(String owner) {
+               this.owner = owner;
+       }
+
+       public boolean isSuspended() {
+               return suspended;
+       }
+
+       public void setSuspended(boolean suspended) {
+               this.suspended = suspended;
+       }
+
+
+
+       public boolean isUse100() {
+               return use100;
+       }
+
+       public void setUse100(boolean use100) {
+               this.use100 = use100;
+       }
 
        public String getDcaeLocationName() {
                return dcaeLocationName;