JAL-3130 Some automatically fixed deprecated calls. Mostly constructors converted...
[jalview.git] / src / jalview / appletgui / AlignViewport.java
index 262948d..246f77a 100644 (file)
@@ -76,7 +76,7 @@ public class AlignViewport extends AlignmentViewport
       {
         try
         {
-          widthScale = new Float(param).floatValue();
+          widthScale = Float.valueOf(param).floatValue();
         } catch (Exception e)
         {
         }
@@ -99,7 +99,7 @@ public class AlignViewport extends AlignmentViewport
       {
         try
         {
-          heightScale = new Float(param).floatValue();
+          heightScale = Float.valueOf(param).floatValue();
         } catch (Exception e)
         {
         }