Code Review
/
aai
/
data-router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use isEmpty to check collection is empty or not
[aai/data-router.git]
/
src
/
main
/
java
/
org
/
onap
/
aai
/
datarouter
/
entity
/
OxmEntityDescriptor.java
diff --git
a/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java
b/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java
index
ed8b9fd
..
a848bd2
100644
(file)
--- a/
src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java
+++ b/
src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java
@@
-73,7
+73,7
@@
public class OxmEntityDescriptor {
return false;
}
return false;
}
- if (
this.searchableAttributes.size() > 0
) {
+ if (
!this.searchableAttributes.isEmpty()
) {
return true;
}
return true;
}
@@
-121,4
+121,4
@@
public class OxmEntityDescriptor {
+ ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity="
+ isSuggestableEntity + "]";
}
+ ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity="
+ isSuggestableEntity + "]";
}
-}
\ No newline at end of file
+}