JAL-3130 Some automatically fixed deprecated calls. Mostly constructors converted...
[jalview.git] / src / jalview / appletgui / FeatureColourChooser.java
index d9eae11..19f6eec 100644 (file)
@@ -309,7 +309,7 @@ public class FeatureColourChooser extends Panel implements ActionListener,
   {
     try
     {
-      float f = new Float(thresholdValue.getText()).floatValue();
+      float f = Float.valueOf(thresholdValue.getText()).floatValue();
       slider.setValue((int) (f * SCALE_FACTOR_1K));
       adjustmentValueChanged(null);