fixed checkstyle errors about utility classes constructors

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811780 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-09-06 08:38:59 +00:00
parent 208aff49c1
commit 514680c03e
6 changed files with 31 additions and 1 deletions

View File

@ -233,9 +233,15 @@ public class UnivariateRealSolverUtils {
* <p>We use here the Initialization On Demand Holder Idiom.</p>
*/
private static class LazyHolder {
/** Private constructor. */
private LazyHolder() {
}
/** Cached solver factory */
private static final UnivariateRealSolverFactory FACTORY =
UnivariateRealSolverFactory.newInstance();
}
}

View File

@ -61,8 +61,14 @@ public class ComplexField implements Field<Complex>, Serializable {
* <p>We use here the Initialization On Demand Holder Idiom.</p>
*/
private static class LazyHolder {
/** Private constructor. */
private LazyHolder() {
}
/** Cached field instance. */
private static final ComplexField INSTANCE = new ComplexField();
}
/** Handle deserialization of the singleton.

View File

@ -61,8 +61,14 @@ public class BigFractionField implements Field<BigFraction>, Serializable {
* <p>We use here the Initialization On Demand Holder Idiom.</p>
*/
private static class LazyHolder {
/** Private constructor. */
private LazyHolder() {
}
/** Cached field instance. */
private static final BigFractionField INSTANCE = new BigFractionField();
}
/** Handle deserialization of the singleton.

View File

@ -61,8 +61,14 @@ public class FractionField implements Field<Fraction>, Serializable {
* <p>We use here the Initialization On Demand Holder Idiom.</p>
*/
private static class LazyHolder {
/** Private constructor. */
private LazyHolder() {
}
/** Cached field instance. */
private static final FractionField INSTANCE = new FractionField();
}
/** Handle deserialization of the singleton.

View File

@ -199,7 +199,7 @@ public class OneWayAnovaImpl implements OneWayAnova {
* @param dfwg degrees of freedom in denominator (within groups)
* @param F statistic
*/
AnovaStats(int dfbg, int dfwg, double F) {
public AnovaStats(int dfbg, int dfwg, double F) {
this.dfbg = dfbg;
this.dfwg = dfwg;
this.F = F;

View File

@ -61,8 +61,14 @@ public class BigRealField implements Field<BigReal>, Serializable {
* <p>We use here the Initialization On Demand Holder Idiom.</p>
*/
private static class LazyHolder {
/** Private constructor. */
private LazyHolder() {
}
/** Cached field instance. */
private static final BigRealField INSTANCE = new BigRealField();
}
/** Handle deserialization of the singleton.