reverted vetoed code change about cloning literal arrays

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1293646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2012-02-25 16:42:02 +00:00
parent 822bace4ce
commit f63bfec50c
1 changed files with 10 additions and 10 deletions

View File

@ -6136,41 +6136,41 @@ class FastMathLiteralArrays {
/** /**
* Load "EXP_INT_A". * Load "EXP_INT_A".
* *
* @return the data array. * @return a clone of the data array.
*/ */
static double[] loadExpIntA() { static double[] loadExpIntA() {
return EXP_INT_A; return EXP_INT_A.clone();
} }
/** /**
* Load "EXP_INT_B". * Load "EXP_INT_B".
* *
* @return the data array. * @return a clone of the data array.
*/ */
static double[] loadExpIntB() { static double[] loadExpIntB() {
return EXP_INT_B; return EXP_INT_B.clone();
} }
/** /**
* Load "EXP_FRAC_A". * Load "EXP_FRAC_A".
* *
* @return the data array. * @return a clone of the data array.
*/ */
static double[] loadExpFracA() { static double[] loadExpFracA() {
return EXP_FRAC_A; return EXP_FRAC_A.clone();
} }
/** /**
* Load "EXP_FRAC_B". * Load "EXP_FRAC_B".
* *
* @return the data array. * @return a clone of the data array.
*/ */
static double[] loadExpFracB() { static double[] loadExpFracB() {
return EXP_FRAC_B; return EXP_FRAC_B.clone();
} }
/** /**
* Load "LN_MANT". * Load "LN_MANT".
* *
* @return the data array. * @return a clone of the data array.
*/ */
static double[][] loadLnMant() { static double[][] loadLnMant() {
return LN_MANT; return LN_MANT.clone();
} }
} }