dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43907
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22273: minor fix
------------------------------------------------------------
revno: 22273
committer: Morten Olav Hansen <morten@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2016-03-13 15:52:19 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.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-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.java 2016-03-13 08:51:26 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/preheat/DefaultPreheatService.java 2016-03-13 08:52:19 +0000
@@ -374,8 +374,6 @@
uniqueMap.put( objectClass, handleUniqueProperties( schema, identifiableObjects ) );
}
- System.err.println( "uniqueMap: " + uniqueMap );
-
return map;
}
@@ -392,11 +390,7 @@
uniqueProperties.forEach( property -> {
if ( !map.containsKey( property.getName() ) ) map.put( property.getName(), new HashMap<>() );
Object value = ReflectionUtils.invokeMethod( object, property.getGetterMethod() );
-
- if ( value != null )
- {
- map.get( property.getName() ).put( value, object.getUid() );
- }
+ if ( value != null ) map.get( property.getName() ).put( value, object.getUid() );
} );
}