From 7b3fedc642eedc661addeccec861abd8b6387750 Mon Sep 17 00:00:00 2001 From: Ken Stevens Date: Wed, 13 Feb 2019 20:41:11 -0500 Subject: [PATCH] sonar --- .../main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java index b9bd91e2eb6..cd69eabaa86 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java @@ -98,9 +98,9 @@ import static org.apache.commons.lang3.StringUtils.*; * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -395,11 +395,7 @@ public abstract class BaseHapiFhirDao implements IDao, private int doExpungeEverythingQuery(String theQuery) { StopWatch sw = new StopWatch(); int outcome = myEntityManager.createQuery(theQuery).executeUpdate(); - if (outcome > 0) { - ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); - } else { - ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); - } + ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); return outcome; }