← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21658: Minor fix

 

------------------------------------------------------------
revno: 21658
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2016-01-08 12:22:42 +0700
message:
  Minor fix
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/HibernateUtils.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/HibernateUtils.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/HibernateUtils.java	2016-01-08 04:02:49 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/HibernateUtils.java	2016-01-08 05:22:42 +0000
@@ -65,11 +65,6 @@
 
         if ( HibernateProxy.class.isInstance( proxy ) )
         {
-            return (T) ((HibernateProxy) proxy).getHibernateLazyInitializer().getImplementation();
-        }
-
-        if ( HibernateProxy.class.isInstance( proxy ) )
-        {
             Object result = ((HibernateProxy) proxy).writeReplace();
 
             if ( !SerializableProxy.class.isInstance( result ) )