summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/websocketmanager/model/src
diff options
context:
space:
mode:
authorm.miernik <m.miernik@samsung.com>2021-06-22 11:37:46 +0200
committerKAPIL SINGAL <ks220y@att.com>2021-06-23 15:48:40 +0000
commitcb7e5aa3c0445882a2bc04222573c1563b98117b (patch)
tree54a754eb9a85890bddf3d05ae6787a6a6bd8e885 /sdnr/wt/websocketmanager/model/src
parenta285920200ba5cdff0d2df4f794518a0db395922 (diff)
Fix sonar issues
Replaced methods size() to isEmpty() based on Sonar recommendations Issue-ID: SDNC-1568 Change-Id: I9b2548ba1d42e009a62ddd34f4f43452622c6ff0 Signed-off-by: m.miernik <m.miernik@samsung.com>
Diffstat (limited to 'sdnr/wt/websocketmanager/model/src')
-rw-r--r--sdnr/wt/websocketmanager/model/src/main/java/org/onap/ccsdk/features/sdnr/wt/websocketmanager/model/data/SchemaInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/websocketmanager/model/src/main/java/org/onap/ccsdk/features/sdnr/wt/websocketmanager/model/data/SchemaInfo.java b/sdnr/wt/websocketmanager/model/src/main/java/org/onap/ccsdk/features/sdnr/wt/websocketmanager/model/data/SchemaInfo.java
index 4d3975379..b920ffe71 100644
--- a/sdnr/wt/websocketmanager/model/src/main/java/org/onap/ccsdk/features/sdnr/wt/websocketmanager/model/data/SchemaInfo.java
+++ b/sdnr/wt/websocketmanager/model/src/main/java/org/onap/ccsdk/features/sdnr/wt/websocketmanager/model/data/SchemaInfo.java
@@ -79,7 +79,7 @@ public class SchemaInfo {
@JsonIgnore
public boolean isValid() {
return this.namespace != null
- && (this.notification == null || (this.notification != null && this.notification.size() > 0));
+ && (this.notification == null || (this.notification != null && !this.notification.isEmpty()));
}
/**