JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / io / vamsas / Sequencefeature.java
index dab840e..f8d86d5 100644 (file)
@@ -232,7 +232,7 @@ public class Sequencefeature extends Rangetype
     if (feature.otherDetails != null)
     {
       Iterator<String> iter = feature.otherDetails.keySet().iterator();
-      Vector<?> props = dsa.getPropertyAsReference();
+      Vector props = dsa.getPropertyAsReference();
       while (iter.hasNext())
       {
         String key = iter.next();
@@ -290,11 +290,10 @@ public class Sequencefeature extends Rangetype
     String featureType = dseta.getType();
     if (dseta.getScoreCount() > 0)
     {
-      @SuppressWarnings("unchecked")
-      Enumeration<Score> scr = dseta.enumerateScore();
+      Enumeration scr = dseta.enumerateScore();
       while (scr.hasMoreElements())
       {
-        Score score = scr.nextElement();
+        Score score = (Score) scr.nextElement();
         if (score.getName().equals(featureType))
         {
           theScore = score.getContent();
@@ -326,11 +325,10 @@ public class Sequencefeature extends Rangetype
     }
     if (dseta.getScoreCount() > 0)
     {
-      @SuppressWarnings("unchecked")
-      Enumeration<Score> scr = dseta.enumerateScore();
+      Enumeration scr = dseta.enumerateScore();
       while (scr.hasMoreElements())
       {
-        Score score = scr.nextElement();
+        Score score = (Score) scr.nextElement();
         if (!score.getName().equals(sf.getType()))
         {
           sf.setValue(score.getName(), "" + score.getContent());
@@ -338,11 +336,10 @@ public class Sequencefeature extends Rangetype
       }
     }
     // other details
-    @SuppressWarnings("unchecked")
-    Enumeration<Property> props = dseta.enumerateProperty();
+    Enumeration props = dseta.enumerateProperty();
     while (props.hasMoreElements())
     {
-      Property p = props.nextElement();
+      Property p = (Property) props.nextElement();
       Object val = null;
       if (Properties.isValid(p))
       {
@@ -354,7 +351,7 @@ public class Sequencefeature extends Rangetype
         {
           try
           {
-            val = new Boolean(p.getContent());
+            val = Boolean.valueOf(p.getContent());
           } catch (Exception e)
           {
           }
@@ -363,7 +360,7 @@ public class Sequencefeature extends Rangetype
         {
           try
           {
-            val = new Float(p.getContent());
+            val = Float.valueOf(p.getContent());
 
           } catch (Exception e)
           {
@@ -373,7 +370,7 @@ public class Sequencefeature extends Rangetype
         {
           try
           {
-            val = new Integer(p.getContent());
+            val = Integer.valueOf(p.getContent());
           } catch (Exception e)
           {
           }