← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7401: minor fix

 

------------------------------------------------------------
revno: 7401
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-06-26 12:27:57 +0300
message:
  minor fix
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DefaultDeletionManager.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/deletion/DefaultDeletionManager.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DefaultDeletionManager.java	2012-06-26 09:13:37 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DefaultDeletionManager.java	2012-06-26 09:27:57 +0000
@@ -140,11 +140,13 @@
 
     private Class<?> getClazz( Object object )
     {
-        if ( ProxyObject.class.isAssignableFrom( object.getClass() ) )
+        Class<?> clazz = object.getClass();
+
+        while ( ProxyObject.class.isAssignableFrom( clazz ) )
         {
-            return object.getClass().getSuperclass();
+            clazz = clazz.getSuperclass();
         }
 
-        return object.getClass();
+        return clazz;
     }
 }