OSGi Boot: remove deprecated methods and adapt to Java 7
[lgpl/argeo-commons.git] / org.argeo.osgi.boot / src / org / argeo / osgi / boot / OsgiBootUtils.java
index 8c63344e5d330fa2a55de7259057116e9b89e4c8..f1105d3bcdbd9f3b3bacac5c7342057f2f54f5ca 100644 (file)
@@ -25,7 +25,6 @@ import java.util.StringTokenizer;
 import org.osgi.framework.Bundle;\r
 \r
 /** Utilities, mostly related to logging. */\r
-@SuppressWarnings({ "rawtypes", "unchecked" })\r
 public class OsgiBootUtils {\r
        /** ISO8601 (as per log4j) and difference to UTC */\r
        private static DateFormat dateFormat = new SimpleDateFormat(\r
@@ -93,11 +92,11 @@ public class OsgiBootUtils {
         */\r
        public static int compareVersions(String currentVersion,\r
                        String testedVersion) {\r
-               List cToks = new ArrayList();\r
+               List<String> cToks = new ArrayList<String>();\r
                StringTokenizer cSt = new StringTokenizer(currentVersion, ".");\r
                while (cSt.hasMoreTokens())\r
                        cToks.add(cSt.nextToken());\r
-               List tToks = new ArrayList();\r
+               List<String> tToks = new ArrayList<String>();\r
                StringTokenizer tSt = new StringTokenizer(currentVersion, ".");\r
                while (tSt.hasMoreTokens())\r
                        tToks.add(tSt.nextToken());\r