aboutsummaryrefslogtreecommitdiffstats
path: root/models-dao/src/main/java/org/onap
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-08-20 16:39:17 -0400
committerJim Hahn <jrh3@att.com>2021-08-20 16:52:14 -0400
commit62c469dc0045e81979ac14aecb105f2150592c3a (patch)
tree11f8e8e25174c4750960a816fd08e071cc748242 /models-dao/src/main/java/org/onap
parentf9506fa28790781dbba0cb7ac16e1f19350ea4ef (diff)
Fix sonars in models
Fixed: - use "var" - change constructor to protected - add equals() to subclasses Issue-ID: POLICY-3094 Change-Id: Ia62716b1a740b4475e54e496330f50aa7fb404d7 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-dao/src/main/java/org/onap')
-rw-r--r--models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java b/models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java
index e9a10a134..1b1b77da2 100644
--- a/models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java
+++ b/models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java
@@ -393,7 +393,7 @@ public class DefaultPfDao implements PfDao {
try {
PfFilter filter = new PfFilterFactory().createFilter(someClass);
- String filterQueryString = SELECT_FROM_TABLE
+ var filterQueryString = SELECT_FROM_TABLE
+ filter.genWhereClause(filterParams)
+ filter.genOrderClause(filterParams);