diff --git a/org/apache/commons/math/function/DefaultContext.java b/org/apache/commons/math/function/DefaultContext.java index 45d3561ec..0d9efed60 100644 --- a/org/apache/commons/math/function/DefaultContext.java +++ b/org/apache/commons/math/function/DefaultContext.java @@ -145,19 +145,19 @@ public class DefaultContext implements EvaluationContext { } DefaultValue(double d) { - value = new Double(d); + value = Double.valueOf(d); } DefaultValue(float f) { - value = new Float(f); + value = Float.valueOf(f); } DefaultValue(int i) { - value = new Integer(i); + value = Integer.valueOf(i); } DefaultValue(long l) { - value = new Long(l); + value = Long.valueOf(l); } /* (non-Javadoc) diff --git a/org/apache/commons/math/stat/univariate/BeanListUnivariateImpl.java b/org/apache/commons/math/stat/univariate/BeanListUnivariateImpl.java index 0df42a9c2..8bbd07539 100644 --- a/org/apache/commons/math/stat/univariate/BeanListUnivariateImpl.java +++ b/org/apache/commons/math/stat/univariate/BeanListUnivariateImpl.java @@ -134,7 +134,7 @@ public class BeanListUnivariateImpl extends ListUnivariateImpl implements Serial } catch (Exception ex) { // InstantiationException, IllegalAccessException throw new RuntimeException(ex); // should never happen } - dynaBean.set(propertyName, new Double(v)); + dynaBean.set(propertyName, Double.valueOf(v)); addObject(dynaBean); } diff --git a/org/apache/commons/math/stat/univariate/BeanListUnivariateImplTest.java b/org/apache/commons/math/stat/univariate/BeanListUnivariateImplTest.java index 9b60288c0..9e9751baf 100644 --- a/org/apache/commons/math/stat/univariate/BeanListUnivariateImplTest.java +++ b/org/apache/commons/math/stat/univariate/BeanListUnivariateImplTest.java @@ -60,21 +60,21 @@ public final class BeanListUnivariateImplTest extends TestCase { patientList = new ArrayList(); // Create and add patient bean 1 - VitalStats vs1 = new VitalStats( new Double(120.0), - new Double(96.4) ); - Patient p1 = new Patient( vs1, new Integer( 35 ) ); + VitalStats vs1 = new VitalStats( Double.valueOf(120.0), + Double.valueOf(96.4) ); + Patient p1 = new Patient( vs1, Integer.valueOf( 35 ) ); patientList.add( p1 ); // Create and add patient bean 2 - VitalStats vs2 = new VitalStats( new Double(70.0), - new Double(97.4) ); - Patient p2 = new Patient( vs2, new Integer( 23 ) ); + VitalStats vs2 = new VitalStats( Double.valueOf(70.0), + Double.valueOf(97.4) ); + Patient p2 = new Patient( vs2, Integer.valueOf( 23 ) ); patientList.add( p2 ); // Create and add patient bean 3 - VitalStats vs3 = new VitalStats( new Double(90.0), - new Double(98.6) ); - Patient p3 = new Patient( vs3, new Integer( 42 ) ); + VitalStats vs3 = new VitalStats( Double.valueOf(90.0), + Double.valueOf(98.6) ); + Patient p3 = new Patient( vs3, Integer.valueOf( 42 ) ); patientList.add( p3 ); }