SafetyMutex and rocket optimization updates
[debian/openrocket] / src / net / sf / openrocket / communication / UpdateInfo.java
index a9b0d0445e237097d0e27abe99c76bc71731fb08..99cf30b64f2a7bdd0997134497cb2109ce618795 100644 (file)
@@ -1,13 +1,13 @@
 package net.sf.openrocket.communication;
 
-import java.util.ArrayList;
 import java.util.List;
 
+import net.sf.openrocket.util.ArrayList;
 import net.sf.openrocket.util.ComparablePair;
 import net.sf.openrocket.util.Prefs;
 
 public class UpdateInfo {
-
+       
        private final String latestVersion;
        
        private final ArrayList<ComparablePair<Integer, String>> updates;
@@ -22,8 +22,8 @@ public class UpdateInfo {
                this.latestVersion = version;
                this.updates = new ArrayList<ComparablePair<Integer, String>>(updates);
        }
-
-
+       
+       
 
        /**
         * Get the latest OpenRocket version.  If it is the current version, then the value
@@ -34,17 +34,16 @@ public class UpdateInfo {
        public String getLatestVersion() {
                return latestVersion;
        }
-
-
+       
+       
        /**
         * Return a list of the new features/updates that are available.  The list has a
         * priority for each update and a message text.  The returned list may be modified.
         * 
         * @return      a modifiable list of the updates.
         */
-       @SuppressWarnings("unchecked")
        public List<ComparablePair<Integer, String>> getUpdates() {
-               return (List<ComparablePair<Integer, String>>) updates.clone();
+               return updates.clone();
        }
        
        @Override