------------------------------------------------------------ revno: 19651 committer: Morten Olav Hansen <morte...@gmail.com> branch nick: dhis2 timestamp: Wed 2015-07-15 16:33:32 +0700 message: minor opt, replace Arrays.asList with Collections.singletonList (for CurrentUserController) modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/user/CurrentUserController.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/user/CurrentUserController.java' --- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/user/CurrentUserController.java 2015-07-14 07:21:33 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/user/CurrentUserController.java 2015-07-15 09:33:32 +0000 @@ -93,6 +93,7 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -182,7 +183,7 @@ fields.add( ":all" ); } - CollectionNode collectionNode = fieldFilterService.filter( User.class, Arrays.asList( currentUser ), fields ); + CollectionNode collectionNode = fieldFilterService.filter( User.class, Collections.singletonList( currentUser ), fields ); RootNode rootNode = new RootNode( collectionNode.getChildren().get( 0 ) ); rootNode.setDefaultNamespace( DxfNamespaces.DXF_2_0 );
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp