dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33962
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17402: Minor
------------------------------------------------------------
revno: 17402
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-11-10 15:52:35 +0100
message:
Minor
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/CompleteDataSetRegistrationController.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-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/CompleteDataSetRegistrationController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/CompleteDataSetRegistrationController.java 2014-10-13 13:49:20 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/CompleteDataSetRegistrationController.java 2014-11-10 14:52:35 +0000
@@ -218,7 +218,7 @@
}
@SuppressWarnings( "unchecked" )
- private <TT extends IdentifiableObject> TT getObject( TT object )
+ private <T extends IdentifiableObject> T getObject( T object )
{
if ( object == null )
{
@@ -227,17 +227,17 @@
if ( Period.class.isInstance( object ) )
{
- return (TT) periodService.reloadIsoPeriod( ((Period) object).getRealUid() );
+ return (T) periodService.reloadIsoPeriod( ((Period) object).getRealUid() );
}
if ( object.getUid() != null )
{
- return (TT) manager.get( object.getClass(), object.getUid() );
+ return (T) manager.get( object.getClass(), object.getUid() );
}
if ( object.getCode() != null )
{
- return (TT) manager.get( object.getClass(), object.getCode() );
+ return (T) manager.get( object.getClass(), object.getCode() );
}
return null;