Making classes final to make inheritance impossible
[iot2.git] / iotjava / iotrmi / Java / IoTRMIUtil.java
index 59b3a49bfc90223a0ffef7ee5c8fdc2096cabed2..cdeb608aa8a7d2a614648db68442ee2363c78647 100644 (file)
@@ -25,7 +25,7 @@ import java.util.Set;
  * @version     1.0
  * @since       2016-10-04
  */
-public class IoTRMIUtil {
+public final class IoTRMIUtil {
 
        /**
         * Class Properties
@@ -57,10 +57,6 @@ public class IoTRMIUtil {
        /**
         * Public static data structure to keep track of multiple skeletons and stubs
         */
-       //public static IoTRMIObject rmiObj;
-       //public static IoTRMICall rmiCall;
-       //public static int objIdCounter = Integer.MAX_VALUE;
-       public static Integer objIdCounter = new Integer(Integer.MAX_VALUE);
        public static Map<Integer,Object> mapStub = new HashMap<Integer,Object>();              // Map object to its stub ID
        public static Map<Object,Object> mapSkel = new HashMap<Object,Object>();                // Map object to its skeleton
        public static Map<Object,Integer> mapSkelId = new HashMap<Object,Integer>();    // Map object to its skeleton ID