Cleaning up code for runtime, installer, RMI, compiler for the Java side
[iot2.git] / iotjava / iotruntime / stub / IoTRemoteCall.java
index 359b8754c01a6e6ef3ddfb7b3b639b706f2fdd67..83fd1284aed7d6454e2a121c8497e49eb1e0a375 100644 (file)
@@ -112,7 +112,7 @@ public class IoTRemoteCall {
                                        e.printStackTrace();
                                }
                        }
-               System.out.println(uri);
+               //System.out.println(uri);
                        try {
                                String strJSONString = sbResponse.toString();
                                Class[][] cr = new Class[1][];
@@ -162,7 +162,6 @@ public class IoTRemoteCall {
 
                } catch (JSONException ex) {
                        ex.printStackTrace();
-                       //throw new Error("IoTRemoteCall: Exiting");
                        logger.log(Level.WARNING, "package format error", ex.getMessage());
                        return null;
                }
@@ -191,7 +190,6 @@ public class IoTRemoteCall {
                        return retval;
                } catch (JSONException ex) {
                        ex.printStackTrace();
-                       //throw new Error("IoTRemoteCall: Exiting");
                        logger.log(Level.WARNING, "package format error", ex.getMessage());
                        return null;
                }
@@ -241,14 +239,13 @@ public class IoTRemoteCall {
                        e.printStackTrace();
                        logger.log(Level.WARNING, "package format errors", e.getMessage());
                        return null;
-                       //throw new Error("IoTRemoteCall: Exiting");
                }
        }
 
        /**
         * Decode object from JSON
         */
-  private static Object decodeObject(JSONObject jsonObj, Class[] tarr) {
+    private static Object decodeObject(JSONObject jsonObj, Class[] tarr) {
 
                try {
                        String type = jsonObj.getString("type");
@@ -326,10 +323,13 @@ public class IoTRemoteCall {
                        e.printStackTrace();
                        logger.log(Level.WARNING, "package format error", e.getMessage());
                        return null;
-                       //throw new Error("IoTRemoteCall: Exiting");
                }
        }
-  
+       
+       
+       /**
+        * foo and Fooimpl are test class and interface
+        */
        interface foo {
                int add(int a, int b);
                int setRoomID(Integer id);