From bf3f7a8af2db33cd22d2e8dbc455549298538e6a Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 13 Nov 2019 13:05:58 -0500 Subject: Remove duplicate dao object Code was creating the DAO object twice - removed the extra line. Note: this properly doesn't fix the race condition, but it should fix a memory leak. Change-Id: I5f5c6002d42f9bb0525d1b5013b1300e80264645 Issue-ID: POLICY-1832 Signed-off-by: Jim Hahn --- .../policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java | 1 - 1 file changed, 1 deletion(-) (limited to 'models-provider/src/main/java/org/onap') diff --git a/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java b/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java index 565eb9afc..9971454bd 100644 --- a/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java +++ b/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java @@ -111,7 +111,6 @@ public class DatabasePolicyModelsProviderImpl implements PolicyModelsProvider { daoParameters.setJdbcProperties(jdbcProperties); - pfDao = new PfDaoFactory().createPfDao(daoParameters); try { pfDao = new PfDaoFactory().createPfDao(daoParameters); pfDao.init(daoParameters); -- cgit 1.2.3-korg