diff options
author | Jim Hahn <jrh3@att.com> | 2019-11-13 13:05:58 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-11-13 13:06:52 -0500 |
commit | bf3f7a8af2db33cd22d2e8dbc455549298538e6a (patch) | |
tree | eca52156a0e1c2038c1b3b19e6515fa269af140d /models-provider/src | |
parent | c34a4b6b2e111462cde7f5663b8fbbc4ad86fc7e (diff) |
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 <jrh3@att.com>
Diffstat (limited to 'models-provider/src')
-rw-r--r-- | models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java | 1 |
1 files changed, 0 insertions, 1 deletions
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); |