From 0213ffe513b4d1f1103e23bebcf3a6f64c408cd5 Mon Sep 17 00:00:00 2001 From: root1 Date: Tue, 9 Jan 2018 16:22:49 +0530 Subject: Fixed as per Java Code Conventions *Moved the constructors after the variables Change-Id: I531a911570867e05d2eabca98d349f4f2f26d0f9 Issue-ID: POLICY-336 Signed-off-by: SRINIVAS V --- .../src/main/java/org/onap/policy/conf/HibernateSession.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'POLICY-SDK-APP/src/main/java') 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(){ - } + } -- cgit 1.2.3-korg