You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2015/12/26 17:51:40 UTC

[math] Reverted unecessary escapes.

Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X 41642aaaa -> cc893e499


Reverted unecessary escapes.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/cc893e49
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/cc893e49
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/cc893e49

Branch: refs/heads/MATH_3_X
Commit: cc893e4998927ed09d4f4c40e08ccceb600212c0
Parents: 41642aa
Author: Phil Steitz <ph...@gmail.com>
Authored: Sat Dec 26 09:51:33 2015 -0700
Committer: Phil Steitz <ph...@gmail.com>
Committed: Sat Dec 26 09:51:33 2015 -0700

----------------------------------------------------------------------
 .../commons/math3/util/CombinatoricsUtils.java  | 28 ++++++++++----------
 1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/cc893e49/src/main/java/org/apache/commons/math3/util/CombinatoricsUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/util/CombinatoricsUtils.java b/src/main/java/org/apache/commons/math3/util/CombinatoricsUtils.java
index 62025ad..ee2718a 100644
--- a/src/main/java/org/apache/commons/math3/util/CombinatoricsUtils.java
+++ b/src/main/java/org/apache/commons/math3/util/CombinatoricsUtils.java
@@ -57,7 +57,7 @@ public final class CombinatoricsUtils {
      * <p>
      * <Strong>Preconditions</strong>:
      * <ul>
-     * <li> {@code 0 &le; k &le; n } (otherwise
+     * <li> {@code 0 <= k <= n } (otherwise
      * {@code MathIllegalArgumentException} is thrown)</li>
      * <li> The result is small enough to fit into a {@code long}. The
      * largest value of {@code n} for which all coefficients are
@@ -69,8 +69,8 @@ public final class CombinatoricsUtils {
      * @param n the size of the set
      * @param k the size of the subsets to be counted
      * @return {@code n choose k}
-     * @throws NotPositiveException if {@code n &lt; 0}.
-     * @throws NumberIsTooLargeException if {@code k &gt; n}.
+     * @throws NotPositiveException if {@code n < 0}.
+     * @throws NumberIsTooLargeException if {@code k > n}.
      * @throws MathArithmeticException if the result is too large to be
      * represented by a long integer.
      */
@@ -139,10 +139,10 @@ public final class CombinatoricsUtils {
      * <p>
      * <Strong>Preconditions</strong>:
      * <ul>
-     * <li> {@code 0 &le; k &le; n } (otherwise
+     * <li> {@code 0 <= k <= n } (otherwise
      * {@code IllegalArgumentException} is thrown)</li>
      * <li> The result is small enough to fit into a {@code double}. The
-     * largest value of {@code n} for which all coefficients are <
+     * largest value of {@code n} for which all coefficients are less than
      * Double.MAX_VALUE is 1029. If the computed value exceeds Double.MAX_VALUE,
      * Double.POSITIVE_INFINITY is returned</li>
      * </ul></p>
@@ -150,8 +150,8 @@ public final class CombinatoricsUtils {
      * @param n the size of the set
      * @param k the size of the subsets to be counted
      * @return {@code n choose k}
-     * @throws NotPositiveException if {@code n &lt; 0}.
-     * @throws NumberIsTooLargeException if {@code k &gt; n}.
+     * @throws NotPositiveException if {@code n < 0}.
+     * @throws NumberIsTooLargeException if {@code k > n}.
      * @throws MathArithmeticException if the result is too large to be
      * represented by a long integer.
      */
@@ -188,7 +188,7 @@ public final class CombinatoricsUtils {
      * <p>
      * <Strong>Preconditions</strong>:
      * <ul>
-     * <li> {@code 0 &le; k &le; n } (otherwise
+     * <li> {@code 0 <= k <= n } (otherwise
      * {@code MathIllegalArgumentException} is thrown)</li>
      * </ul></p>
      *
@@ -255,7 +255,7 @@ public final class CombinatoricsUtils {
      * <p>
      * <Strong>Preconditions</strong>:
      * <ul>
-     * <li> {@code n &ge; 0} (otherwise
+     * <li> {@code n >= 0} (otherwise
      * {@code MathIllegalArgumentException} is thrown)</li>
      * <li> The result is small enough to fit into a {@code long}. The
      * largest value of {@code n} for which {@code n!} does not exceed
@@ -268,8 +268,8 @@ public final class CombinatoricsUtils {
      * @return {@code n!}
      * @throws MathArithmeticException if the result is too large to be represented
      * by a {@code long}.
-     * @throws NotPositiveException if {@code n &lt; 0}.
-     * @throws MathArithmeticException if {@code n &gt; 20}: The factorial value is too
+     * @throws NotPositiveException if {@code n < 0}.
+     * @throws MathArithmeticException if {@code n > 20}: The factorial value is too
      * large to fit in a {@code long}.
      */
     public static long factorial(final int n) throws NotPositiveException, MathArithmeticException {
@@ -312,7 +312,7 @@ public final class CombinatoricsUtils {
      *
      * @param n Argument.
      * @return {@code n!}
-     * @throws NotPositiveException if {@code n &lt; 0}.
+     * @throws NotPositiveException if {@code n < 0}.
      */
     public static double factorialLog(final int n) throws NotPositiveException {
         if (n < 0) {
@@ -444,8 +444,8 @@ public final class CombinatoricsUtils {
      *
      * @param n Size of the set.
      * @param k Size of the subsets to be counted.
-     * @throws NotPositiveException if {@code n &lt; 0}.
-     * @throws NumberIsTooLargeException if {@code k &gt; n}.
+     * @throws NotPositiveException if {@code n < 0}.
+     * @throws NumberIsTooLargeException if {@code k > n}.
      */
     public static void checkBinomial(final int n,
                                      final int k)


Re: [math] Reverted unecessary escapes.

Posted by Phil Steitz <ph...@gmail.com>.
On 12/26/15 9:54 AM, Gilles wrote:
> On Sat, 26 Dec 2015 16:51:40 +0000 (UTC), psteitz@apache.org wrote:
>> Repository: commons-math
>> Updated Branches:
>>   refs/heads/MATH_3_X 41642aaaa -> cc893e499
>>
>>
>> Reverted unecessary escapes.
>
> Wow, that was fast!
>
> Gilles (happy again).

He he.  I had noticed already that my search and replace was not
working correctly.  I am slowly trying to get the 1.8 javadoc tool
to shut up without making the source or generated javadoc too ugly. 
The time is not 100% wasted because I am finding some small errors
along the way and fixing them.

Phil
>
>> [...]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] Reverted unecessary escapes.

Posted by Gilles <gi...@harfang.homelinux.org>.
On Sat, 26 Dec 2015 16:51:40 +0000 (UTC), psteitz@apache.org wrote:
> Repository: commons-math
> Updated Branches:
>   refs/heads/MATH_3_X 41642aaaa -> cc893e499
>
>
> Reverted unecessary escapes.

Wow, that was fast!

Gilles (happy again).

> [...]


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org