Security Issue: Add a private constructor to hide the implicit public one. 49/85549/3
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>
Wed, 17 Apr 2019 09:06:48 +0000 (14:36 +0530)
committerSeshu Kumar M <seshu.kumar.m@huawei.com>
Wed, 17 Apr 2019 12:18:04 +0000 (12:18 +0000)
Add a private constructor to hide the implicit public one

Issue-ID: SO-1490

Change-Id: Icbcdc9b9a7fcfce0cd0343eecaa93b31ba819ec0
Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java
quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java

index b69e0e1..73204e9 100644 (file)
@@ -18,10 +18,14 @@ package com.woorea.openstack.base.client;
 
 public class OpenStackResponseStatus {
 
+    private OpenStackResponseStatus(){
+
+    }
+
     public static final int OK = 200;
 
     public static final int NOT_AUTHORIZED = 401;
 
     public static final int CONFLICT = 409;
 
-}
+}
\ No newline at end of file
index 5efe995..1951a60 100644 (file)
@@ -190,7 +190,7 @@ public class Port implements Serializable {
     private List<String> securityGroups;
 
     @JsonUnwrapped
-    private Binding binding;
+    private   Binding binding;
 
     /**
      * @return the adminStateUp
@@ -386,4 +386,4 @@ public class Port implements Serializable {
                 + ", securityGroups=" + securityGroups
                 + ", binding=" + binding + "]";
     }
-}
+}
\ No newline at end of file