← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15616: minor fix, collapse exception block

 

------------------------------------------------------------
revno: 15616
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-06-11 10:13:22 +0200
message:
  minor fix, collapse exception block
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.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/AbstractCrudController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java	2014-06-09 10:57:14 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java	2014-06-11 08:13:22 +0000
@@ -505,15 +505,7 @@
         {
             return (T) Class.forName( getEntityName() ).newInstance();
         }
-        catch ( InstantiationException ex )
-        {
-            throw new RuntimeException( ex );
-        }
-        catch ( IllegalAccessException ex )
-        {
-            throw new RuntimeException( ex );
-        }
-        catch ( ClassNotFoundException ex )
+        catch ( InstantiationException | IllegalAccessException | ClassNotFoundException ex )
         {
             throw new RuntimeException( ex );
         }