Displaying differences for changeset
 
display as  

src/java/m/wqm/NutrientSLP/V1_0.java

@@ -39,17 +39,17 @@
     @Override
     protected void preProcess() throws ServiceException, JSONException {
         aoaId = getIntParam("AoAId");
+    }
+
+
+    @Override
+    protected void doProcess() throws ServiceException, JSONException {
         JSONArray groups = getJSONArrayParam("soilcomponents");
         for (int i = 0; i < groups.length(); i++) {
             Map<String, JSONObject> group = JSONUtils.preprocess(groups.getJSONArray(i));
             SoilComponent input = new SoilComponent(group);
             soilComponentList.add(input);
-        }
-    }
-
-
-    @Override
-    protected void doProcess() throws ServiceException {
+        }        
         computeNSLP();
         computeAoaNSLP();
     }