From: root1 Date: Tue, 9 Jan 2018 10:52:49 +0000 (+0530) Subject: Fixed as per Java Code Conventions X-Git-Tag: v1.2.0~190 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=0213ffe513b4d1f1103e23bebcf3a6f64c408cd5;p=policy%2Fengine.git Fixed as per Java Code Conventions *Moved the constructors after the variables Change-Id: I531a911570867e05d2eabca98d349f4f2f26d0f9 Issue-ID: POLICY-336 Signed-off-by: SRINIVAS V --- 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(){ - } + }