diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2021-05-28 18:36:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-28 18:36:58 +0000 |
commit | b1ebc97af3bf155a34100380435b5d21a2be774d (patch) | |
tree | efce2c8e3276faee0551061a5ed279a7799b5ff7 /models-dao | |
parent | 5b4f2717c1c86b4c24d65f53aab54bcddf732ea5 (diff) | |
parent | 64a014a75a8b7c23dc05b1c889ece6ae92ed9eeb (diff) |
Merge "No-sonar on the wrong line"
Diffstat (limited to 'models-dao')
-rw-r--r-- | models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java | 4 |
1 files changed, 2 insertions, 2 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 d1e32935c..d27f3c6ed 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 @@ -630,8 +630,8 @@ public class DefaultPfDao implements PfDao { * The invoking code only passes well-known classes into this method, thus * disabling the sonar about SQL injection. */ - size = mg.createQuery("SELECT COUNT(c) FROM " + someClass.getSimpleName() + " c", Long.class) - .getSingleResult(); // NOSONAR + size = mg.createQuery("SELECT COUNT(c) FROM " + someClass.getSimpleName() + " c", Long.class) // NOSONAR + .getSingleResult(); } finally { mg.close(); } |