← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16436: Code style

 

------------------------------------------------------------
revno: 16436
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-08-18 12:46:13 +0200
message:
  Code style
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/organisationunit/OrganisationUnitController.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/organisationunit/OrganisationUnitController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/organisationunit/OrganisationUnitController.java	2014-08-18 10:44:11 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/organisationunit/OrganisationUnitController.java	2014-08-18 10:46:13 +0000
@@ -202,15 +202,14 @@
     }
     
     @RequestMapping( value = "/{uid}/parents", method = RequestMethod.GET )
-    public List<OrganisationUnit> getEntityList( @PathVariable( "uid" ) String uid
-        , @RequestParam Map<String, String> parameters
-        , Model model, HttpServletRequest request, HttpServletResponse response ) throws Exception
+    public List<OrganisationUnit> getEntityList( @PathVariable( "uid" ) String uid, 
+        @RequestParam Map<String, String> parameters, Model model, 
+        HttpServletRequest request, HttpServletResponse response ) throws Exception
     { 
         OrganisationUnit organisationUnit = manager.get( getEntityClass(), uid );
 
         List<OrganisationUnit> organisationUnits = Lists.newArrayList();
         
-        // Add organisation unit parents 
         if ( organisationUnit != null )
         {
             OrganisationUnit organisationUnitParent = organisationUnit.getParent();
@@ -230,7 +229,5 @@
         model.addAttribute( "viewClass", options.getViewClass( "basic" ) );
         
         return organisationUnits;
-    }
-
-    
+    }    
 }