← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15635: indent fix in EventAnalyticsController

 

------------------------------------------------------------
revno: 15635
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-06-11 21:35:22 +0200
message:
  indent fix in EventAnalyticsController
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/EventAnalyticsController.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/EventAnalyticsController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/EventAnalyticsController.java	2014-05-22 12:40:24 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/EventAnalyticsController.java	2014-06-11 19:35:22 +0000
@@ -28,22 +28,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-import static org.hisp.dhis.analytics.AnalyticsService.NAMES_META_KEY;
-
-import java.util.Map;
-import java.util.Set;
-
-import javax.servlet.http.HttpServletResponse;
-
 import org.hisp.dhis.analytics.SortOrder;
 import org.hisp.dhis.analytics.event.EventAnalyticsService;
 import org.hisp.dhis.analytics.event.EventQueryParams;
-import org.hisp.dhis.webapi.utils.ContextUtils;
-import org.hisp.dhis.webapi.utils.ContextUtils.CacheStrategy;
 import org.hisp.dhis.common.Grid;
 import org.hisp.dhis.common.IllegalQueryException;
 import org.hisp.dhis.i18n.I18nManager;
 import org.hisp.dhis.system.grid.GridUtils;
+import org.hisp.dhis.webapi.utils.ContextUtils;
+import org.hisp.dhis.webapi.utils.ContextUtils.CacheStrategy;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
@@ -53,6 +46,12 @@
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestParam;
 
+import javax.servlet.http.HttpServletResponse;
+import java.util.Map;
+import java.util.Set;
+
+import static org.hisp.dhis.analytics.AnalyticsService.NAMES_META_KEY;
+
 /**
  * @author Lars Helge Overland
  */
@@ -69,30 +68,30 @@
 
     @Autowired
     private I18nManager i18nManager;
-    
+
     // -------------------------------------------------------------------------
     // Aggregate
     // -------------------------------------------------------------------------
-    
+
     @RequestMapping( value = RESOURCE_PATH + "/aggregate/{program}", method = RequestMethod.GET, produces = { "application/json", "application/javascript" } )
     public String getAggregateJson( // JSON, JSONP
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) Integer limit,
-        @RequestParam(required=false) boolean uniqueInstances,
-        @RequestParam(required=false) SortOrder sortOrder,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) Integer limit,
+        @RequestParam( required = false ) boolean uniqueInstances,
+        @RequestParam( required = false ) SortOrder sortOrder,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             skipMeta, hierarchyMeta, sortOrder, limit, uniqueInstances, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_JSON, CacheStrategy.RESPECT_SYSTEM_SETTING );
         Grid grid = analyticsService.getAggregatedEventData( params );
         model.addAttribute( "model", grid );
@@ -103,22 +102,22 @@
     @RequestMapping( value = RESOURCE_PATH + "/aggregate/{program}.xml", method = RequestMethod.GET )
     public void getAggregateXml(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) Integer limit,
-        @RequestParam(required=false) boolean uniqueInstances,
-        @RequestParam(required=false) SortOrder sortOrder,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) Integer limit,
+        @RequestParam( required = false ) boolean uniqueInstances,
+        @RequestParam( required = false ) SortOrder sortOrder,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             skipMeta, hierarchyMeta, sortOrder, limit, uniqueInstances, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_XML, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.xml", false );
         Grid grid = analyticsService.getAggregatedEventData( params );
         GridUtils.toXml( substituteMetaData( grid ), response.getOutputStream() );
@@ -127,22 +126,22 @@
     @RequestMapping( value = RESOURCE_PATH + "/aggregate/{program}.xls", method = RequestMethod.GET )
     public void getAggregateXls(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) Integer limit,
-        @RequestParam(required=false) boolean uniqueInstances,
-        @RequestParam(required=false) SortOrder sortOrder,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) Integer limit,
+        @RequestParam( required = false ) boolean uniqueInstances,
+        @RequestParam( required = false ) SortOrder sortOrder,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             skipMeta, hierarchyMeta, sortOrder, limit, uniqueInstances, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_EXCEL, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.xls", true );
         Grid grid = analyticsService.getAggregatedEventData( params );
         GridUtils.toXls( substituteMetaData( grid ), response.getOutputStream() );
@@ -151,22 +150,22 @@
     @RequestMapping( value = RESOURCE_PATH + "/aggregate/{program}.csv", method = RequestMethod.GET )
     public void getAggregateCsv(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) Integer limit,
-        @RequestParam(required=false) boolean uniqueInstances,
-        @RequestParam(required=false) SortOrder sortOrder,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) Integer limit,
+        @RequestParam( required = false ) boolean uniqueInstances,
+        @RequestParam( required = false ) SortOrder sortOrder,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             skipMeta, hierarchyMeta, sortOrder, limit, uniqueInstances, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_CSV, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.csv", true );
         Grid grid = analyticsService.getAggregatedEventData( params );
         GridUtils.toCsv( substituteMetaData( grid ), response.getOutputStream() );
@@ -175,22 +174,22 @@
     @RequestMapping( value = RESOURCE_PATH + "/aggregate/{program}.html", method = RequestMethod.GET )
     public void getAggregateHtml(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) Integer limit,
-        @RequestParam(required=false) boolean uniqueInstances,
-        @RequestParam(required=false) SortOrder sortOrder,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) Integer limit,
+        @RequestParam( required = false ) boolean uniqueInstances,
+        @RequestParam( required = false ) SortOrder sortOrder,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             skipMeta, hierarchyMeta, sortOrder, limit, uniqueInstances, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_HTML, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.html", false );
         Grid grid = analyticsService.getAggregatedEventData( params );
         GridUtils.toHtml( substituteMetaData( grid ), response.getWriter() );
@@ -199,29 +198,29 @@
     // -------------------------------------------------------------------------
     // Query
     // -------------------------------------------------------------------------
-    
+
     @RequestMapping( value = RESOURCE_PATH + "/query/{program}", method = RequestMethod.GET, produces = { "application/json", "application/javascript" } )
     public String getQueryJson( // JSON, JSONP
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) String ouMode,
-        @RequestParam(required=false) Set<String> asc,
-        @RequestParam(required=false) Set<String> desc,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) boolean coordinatesOnly,
-        @RequestParam(required=false) Integer page,
-        @RequestParam(required=false) Integer pageSize,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) String ouMode,
+        @RequestParam( required = false ) Set<String> asc,
+        @RequestParam( required = false ) Set<String> desc,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) boolean coordinatesOnly,
+        @RequestParam( required = false ) Integer page,
+        @RequestParam( required = false ) Integer pageSize,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, ouMode, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, ouMode,
             asc, desc, skipMeta, hierarchyMeta, coordinatesOnly, page, pageSize, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_JSON, CacheStrategy.RESPECT_SYSTEM_SETTING );
         Grid grid = analyticsService.getEvents( params );
         model.addAttribute( "model", grid );
@@ -232,25 +231,25 @@
     @RequestMapping( value = RESOURCE_PATH + "/query/{program}.xml", method = RequestMethod.GET )
     public void getQueryXml(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) String ouMode,
-        @RequestParam(required=false) Set<String> asc,
-        @RequestParam(required=false) Set<String> desc,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) boolean coordinatesOnly,
-        @RequestParam(required=false) Integer page,
-        @RequestParam(required=false) Integer pageSize,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) String ouMode,
+        @RequestParam( required = false ) Set<String> asc,
+        @RequestParam( required = false ) Set<String> desc,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) boolean coordinatesOnly,
+        @RequestParam( required = false ) Integer page,
+        @RequestParam( required = false ) Integer pageSize,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             ouMode, asc, desc, skipMeta, hierarchyMeta, coordinatesOnly, page, pageSize, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_XML, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.xml", false );
         Grid grid = analyticsService.getEvents( params );
         GridUtils.toXml( substituteMetaData( grid ), response.getOutputStream() );
@@ -259,25 +258,25 @@
     @RequestMapping( value = RESOURCE_PATH + "/query/{program}.xls", method = RequestMethod.GET )
     public void getQueryXls(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) String ouMode,
-        @RequestParam(required=false) Set<String> asc,
-        @RequestParam(required=false) Set<String> desc,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) boolean coordinatesOnly,
-        @RequestParam(required=false) Integer page,
-        @RequestParam(required=false) Integer pageSize,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) String ouMode,
+        @RequestParam( required = false ) Set<String> asc,
+        @RequestParam( required = false ) Set<String> desc,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) boolean coordinatesOnly,
+        @RequestParam( required = false ) Integer page,
+        @RequestParam( required = false ) Integer pageSize,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             ouMode, asc, desc, skipMeta, hierarchyMeta, coordinatesOnly, page, pageSize, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_EXCEL, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.xls", true );
         Grid grid = analyticsService.getEvents( params );
         GridUtils.toXls( substituteMetaData( grid ), response.getOutputStream() );
@@ -286,25 +285,25 @@
     @RequestMapping( value = RESOURCE_PATH + "/query/{program}.csv", method = RequestMethod.GET )
     public void getQueryCsv(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) String ouMode,
-        @RequestParam(required=false) Set<String> asc,
-        @RequestParam(required=false) Set<String> desc,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) boolean coordinatesOnly,
-        @RequestParam(required=false) Integer page,
-        @RequestParam(required=false) Integer pageSize,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) String ouMode,
+        @RequestParam( required = false ) Set<String> asc,
+        @RequestParam( required = false ) Set<String> desc,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) boolean coordinatesOnly,
+        @RequestParam( required = false ) Integer page,
+        @RequestParam( required = false ) Integer pageSize,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             ouMode, asc, desc, skipMeta, hierarchyMeta, coordinatesOnly, page, pageSize, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_CSV, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.csv", true );
         Grid grid = analyticsService.getEvents( params );
         GridUtils.toCsv( substituteMetaData( grid ), response.getOutputStream() );
@@ -313,41 +312,41 @@
     @RequestMapping( value = RESOURCE_PATH + "/query/{program}.html", method = RequestMethod.GET )
     public void getQueryHtml(
         @PathVariable String program,
-        @RequestParam(required=false) String stage,
-        @RequestParam(required=false) String startDate,
-        @RequestParam(required=false) String endDate,
+        @RequestParam( required = false ) String stage,
+        @RequestParam( required = false ) String startDate,
+        @RequestParam( required = false ) String endDate,
         @RequestParam Set<String> dimension,
-        @RequestParam(required=false) Set<String> filter,
-        @RequestParam(required=false) String ouMode,
-        @RequestParam(required=false) Set<String> asc,
-        @RequestParam(required=false) Set<String> desc,
-        @RequestParam(required=false) boolean skipMeta,
-        @RequestParam(required=false) boolean hierarchyMeta,
-        @RequestParam(required=false) boolean coordinatesOnly,
-        @RequestParam(required=false) Integer page,
-        @RequestParam(required=false) Integer pageSize,
+        @RequestParam( required = false ) Set<String> filter,
+        @RequestParam( required = false ) String ouMode,
+        @RequestParam( required = false ) Set<String> asc,
+        @RequestParam( required = false ) Set<String> desc,
+        @RequestParam( required = false ) boolean skipMeta,
+        @RequestParam( required = false ) boolean hierarchyMeta,
+        @RequestParam( required = false ) boolean coordinatesOnly,
+        @RequestParam( required = false ) Integer page,
+        @RequestParam( required = false ) Integer pageSize,
         Model model,
         HttpServletResponse response ) throws Exception
     {
-        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter, 
+        EventQueryParams params = analyticsService.getFromUrl( program, stage, startDate, endDate, dimension, filter,
             ouMode, asc, desc, skipMeta, hierarchyMeta, coordinatesOnly, page, pageSize, i18nManager.getI18nFormat() );
-        
+
         contextUtils.configureResponse( response, ContextUtils.CONTENT_TYPE_HTML, CacheStrategy.RESPECT_SYSTEM_SETTING, "events.html", false );
         Grid grid = analyticsService.getEvents( params );
         GridUtils.toHtml( substituteMetaData( grid ), response.getWriter() );
     }
-    
+
     // -------------------------------------------------------------------------
     // Exception handling
     // -------------------------------------------------------------------------
-  
-    @ExceptionHandler(IllegalQueryException.class)
+
+    @ExceptionHandler( IllegalQueryException.class )
     public void handleError( IllegalQueryException ex, HttpServletResponse response )
     {
         ContextUtils.conflictResponse( response, ex.getMessage() );
     }
 
-    @ExceptionHandler(IllegalArgumentException.class)
+    @ExceptionHandler( IllegalArgumentException.class )
     public void handleError( IllegalArgumentException ex, HttpServletResponse response )
     {
         ContextUtils.conflictResponse( response, ex.getMessage() );
@@ -356,15 +355,15 @@
     // -------------------------------------------------------------------------
     // Supportive methods
     // -------------------------------------------------------------------------
-  
-    @SuppressWarnings("unchecked")
+
+    @SuppressWarnings( "unchecked" )
     private Grid substituteMetaData( Grid grid )
     {
         if ( grid.getMetaData() != null && grid.getMetaData().containsKey( NAMES_META_KEY ) )
         {
             grid.substituteMetaData( (Map<Object, Object>) grid.getMetaData().get( NAMES_META_KEY ) );
         }
-        
+
         return grid;
     }
 }