diff options
author | Isaac Manuel Raj <isaac.manuelraj@huawei.com> | 2019-04-17 14:36:48 +0530 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-04-17 12:18:04 +0000 |
commit | 9cf72ced6cba4ba7326ceaf34887c212a301b0df (patch) | |
tree | 39fc3b8abef782fbc4e95e552936dc32e22087c0 | |
parent | ad129232e3afb713170a5b45b6fd2fec371848bb (diff) |
Security Issue: Add a private constructor to hide the implicit public one.
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>
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java | 6 | ||||
-rw-r--r-- | quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java index b69e0e1..73204e9 100644 --- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java +++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseStatus.java @@ -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 diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java index 5efe995..1951a60 100644 --- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java +++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Port.java @@ -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 |