Repository: commons-math Updated Branches: refs/heads/master 030b9a723 -> dd9cb37df
Fixed checkstyle warnings. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/dd9cb37d Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/dd9cb37d Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/dd9cb37d Branch: refs/heads/master Commit: dd9cb37df54a3016e8efb283732012ae14bea1cf Parents: 030b9a7 Author: Luc Maisonobe <l...@apache.org> Authored: Fri Dec 25 13:22:23 2015 +0100 Committer: Luc Maisonobe <l...@apache.org> Committed: Fri Dec 25 13:22:23 2015 +0100 ---------------------------------------------------------------------- .../commons/math4/util/CombinatoricsUtils.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/dd9cb37d/src/main/java/org/apache/commons/math4/util/CombinatoricsUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/util/CombinatoricsUtils.java b/src/main/java/org/apache/commons/math4/util/CombinatoricsUtils.java index 019a80f..ea5a540 100644 --- a/src/main/java/org/apache/commons/math4/util/CombinatoricsUtils.java +++ b/src/main/java/org/apache/commons/math4/util/CombinatoricsUtils.java @@ -45,6 +45,15 @@ public final class CombinatoricsUtils { /** Stirling numbers of the second kind. */ static final AtomicReference<long[][]> STIRLING_S2 = new AtomicReference<long[][]> (null); + /** + * Default implementation of {@link #factorialLog(int)} method: + * <ul> + * <li>No pre-computation</li> + * <li>No cache allocation</li> + * </ul> + */ + private static final FactorialLog FACTORIAL_LOG_NO_CACHE = FactorialLog.create(); + /** Private constructor (class contains only static methods). */ private CombinatoricsUtils() {} @@ -309,15 +318,6 @@ public final class CombinatoricsUtils { } /** - * Default implementation of {@link #factorialLog(int)} method: - * <ul> - * <li>No pre-computation</li> - * <li>No cache allocation</li> - * </ul> - */ - private static final FactorialLog FACTORIAL_LOG_NO_CACHE = FactorialLog.create(); - - /** * Compute the natural logarithm of the factorial of {@code n}. * * @param n Argument. @@ -505,6 +505,7 @@ public final class CombinatoricsUtils { /** * Creates an instance with no precomputed values. + * @return instance with no precomputed values */ public static FactorialLog create() { return new FactorialLog(0, null);