Added a check for utility class constructor which must be private to prevent instantiation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a43d721f85
commit
5444ff3879
|
@ -75,6 +75,9 @@
|
|||
<module name="UnusedImports" />
|
||||
<module name="IllegalImport" />
|
||||
|
||||
<!-- Utility class should not be instantiated, they must have a private constructor -->
|
||||
<module name="HideUtilityClassConstructor" />
|
||||
|
||||
</module>
|
||||
|
||||
<!-- Require package javadoc -->
|
||||
|
|
|
@ -38,9 +38,9 @@ import org.apache.commons.math.fraction.Fraction;
|
|||
public class MatrixUtils {
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
* Private constructor.
|
||||
*/
|
||||
public MatrixUtils() {
|
||||
private MatrixUtils() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue