You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2008/06/16 13:28:34 UTC
svn commit: r668117 -
/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java
Author: luc
Date: Mon Jun 16 04:28:34 2008
New Revision: 668117
URL: http://svn.apache.org/viewvc?rev=668117&view=rev
Log:
replaced inefficient constructors Character(char) by Character.valueOf(char)
Modified:
commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java
Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java?rev=668117&r1=668116&r2=668117&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java (original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/stat/Frequency.java Mon Jun 16 04:28:34 2008
@@ -144,7 +144,7 @@
* @param v the value to add.
*/
public void addValue(char v) {
- addValue(new Character(v));
+ addValue(Character.valueOf(v));
}
/** Clears the frequency table */
@@ -230,7 +230,7 @@
* @return the frequency of v.
*/
public long getCount(char v) {
- return getCount(new Character(v));
+ return getCount(Character.valueOf(v));
}
//-------------------------------------------------------------
@@ -281,7 +281,7 @@
* @return the proportion of values equal to v
*/
public double getPct(char v) {
- return getPct(new Character(v));
+ return getPct(Character.valueOf(v));
}
//-----------------------------------------------------------------------------------------
@@ -369,7 +369,7 @@
* @return the proportion of values equal to v
*/
public long getCumFreq(char v) {
- return getCumFreq(new Character(v));
+ return getCumFreq(Character.valueOf(v));
}
//----------------------------------------------------------------------------------------------
@@ -428,7 +428,7 @@
* @return the proportion of values less than or equal to v
*/
public double getCumPct(char v) {
- return getCumPct(new Character(v));
+ return getCumPct(Character.valueOf(v));
}
/**