JAL-3130 Some automatically fixed deprecated calls. Mostly constructors converted...
[jalview.git] / src / jalview / appletgui / AnnotationColourChooser.java
index 533226e..9456986 100644 (file)
@@ -350,7 +350,7 @@ public class AnnotationColourChooser extends Panel implements
     {
       try
       {
-        float f = new Float(thresholdValue.getText()).floatValue();
+        float f = Float.valueOf(thresholdValue.getText()).floatValue();
         slider.setValue((int) (f * 1000));
         adjustmentValueChanged(null);
       } catch (NumberFormatException ex)