diff options
author | root1 <srinivasa.mohan@huawei.com> | 2018-01-09 16:22:49 +0530 |
---|---|---|
committer | SRINIVAS V <srinivasa.mohan@huawei.com> | 2018-01-11 15:26:20 +0000 |
commit | 0213ffe513b4d1f1103e23bebcf3a6f64c408cd5 (patch) | |
tree | 201f08f31a5727d66a324884e93b6d9417476d37 /POLICY-SDK-APP | |
parent | f99b843890966768267a05e2f4e237bad7c386f0 (diff) |
Fixed as per Java Code Conventions
*Moved the constructors after the variables
Change-Id: I531a911570867e05d2eabca98d349f4f2f26d0f9
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
Diffstat (limited to 'POLICY-SDK-APP')
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/conf/HibernateSession.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/conf/HibernateSession.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/conf/HibernateSession.java index 32f40b9e7..0e1be9349 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/conf/HibernateSession.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/conf/HibernateSession.java @@ -56,6 +56,13 @@ public class HibernateSession{ LOGGER.error("Exception Occured while creating Log database Hibernate session"+ex); } } + + private HibernateSession(){ + /** + empty implementation + */ + } + public static Session getSession(){ return logSessionFactory.openSession(); } @@ -64,6 +71,5 @@ public class HibernateSession{ logSessionFactory = logSessionFactory1; } - private HibernateSession(){ - } + } |