← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15581: minor fix in PropertyIntrospectorService, set proper name

 

------------------------------------------------------------
revno: 15581
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2014-06-07 15:35:12 +0200
message:
  minor fix in PropertyIntrospectorService, set proper name
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/DefaultPropertyIntrospectorService.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/schema/DefaultPropertyIntrospectorService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/DefaultPropertyIntrospectorService.java	2014-06-06 11:59:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/DefaultPropertyIntrospectorService.java	2014-06-07 13:35:12 +0000
@@ -138,6 +138,8 @@
                     property.setDescription( description.value() );
                 }
 
+                property.setName( name );
+
                 if ( method.isAnnotationPresent( JacksonXmlProperty.class ) )
                 {
                     JacksonXmlProperty jacksonXmlProperty = method.getAnnotation( JacksonXmlProperty.class );
@@ -170,7 +172,6 @@
                     }
                 }
 
-                property.setName( name );
                 propertyMap.put( name, property );
 
                 Class<?> returnType = method.getReturnType();