summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorkaty.rotman <katy.rotman@amdocs.com>2018-05-24 14:09:26 +0300
committerOren Kleks <orenkle@amdocs.com>2018-05-28 08:15:19 +0000
commit6c72be9effaeff9f2b6dbc843b2d4d1ec1b60b1b (patch)
treec12f52038556398175f7a4ee64a821aa44659644 /common
parentd981ef67e956f1e5a28ca77f2841f49e468c5b1b (diff)
fixing sonar violations
Issue-ID: SDC-1363 Change-Id: I29b8df69d49d6ca0ba953b362f7574213e931183 Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
Diffstat (limited to 'common')
-rw-r--r--common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilter.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilter.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilter.java
index 0453325aa2..ce0391d62d 100644
--- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilter.java
+++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilter.java
@@ -26,7 +26,7 @@ import java.util.Map;
public class CapabilityFilter {
- List<Map<String, List<Constraint>>> properties;
+ private List<Map<String, List<Constraint>>> properties;
public List<Map<String, List<Constraint>>> getProperties() {
return properties;
@@ -38,9 +38,10 @@ public class CapabilityFilter {
@Override
public String toString() {
- final StringBuilder sb = new StringBuilder("CapabilityFilter{");
- sb.append("properties=").append(properties);
- sb.append('}');
- return sb.toString();
+ return "CapabilityFilter{" + "properties=" + properties + '}';
+ }
+
+ public CapabilityFilter() {
+ //default constructor
}
}