dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36856
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18841: Genrics fix
------------------------------------------------------------
revno: 18841
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-04-09 10:59:36 +0200
message:
Genrics fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/QueryUtils.java
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/objectfilter/ops/Op.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/query/QueryUtils.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/QueryUtils.java 2015-03-27 15:45:41 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/QueryUtils.java 2015-04-09 08:59:36 +0000
@@ -42,7 +42,7 @@
public final class QueryUtils
{
@SuppressWarnings( "unchecked" )
- static public <T> T getValue( Class<?> klass, String value )
+ static public <T> T getValue( Class<T> klass, String value )
{
if ( klass.isInstance( value ) )
{
@@ -118,6 +118,5 @@
private QueryUtils()
{
-
}
}
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/objectfilter/ops/Op.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/objectfilter/ops/Op.java 2015-03-11 19:23:05 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/objectfilter/ops/Op.java 2015-04-09 08:59:36 +0000
@@ -52,7 +52,7 @@
return value;
}
- public <T> T getValue( Class<?> klass )
+ public <T> T getValue( Class<T> klass )
{
return QueryUtils.getValue( klass, value );
}