Merge "No-sonar on the wrong line"
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Fri, 28 May 2021 18:36:58 +0000 (18:36 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 28 May 2021 18:36:58 +0000 (18:36 +0000)
models-dao/src/main/java/org/onap/policy/models/dao/impl/DefaultPfDao.java

index d1e3293..d27f3c6 100644 (file)
@@ -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();
         }