Repository: commons-numbers Updated Branches: refs/heads/master 58f8953f4 -> 118a2fdd1
NUMBERS-60: Javadoc links fixed. Complex.NAN access modifier changed to private. Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/1b5aefaa Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/1b5aefaa Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/1b5aefaa Branch: refs/heads/master Commit: 1b5aefaa31ab52b4d0b96beabeced303d833e393 Parents: e291781 Author: Eric Barnhill <ericbarnh...@apache.org> Authored: Wed Feb 14 10:03:57 2018 +0100 Committer: Eric Barnhill <ericbarnh...@apache.org> Committed: Wed Feb 14 10:03:57 2018 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/commons/numbers/complex/Complex.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/1b5aefaa/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java ---------------------------------------------------------------------- diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java index 4490953..fd73a7f 100644 --- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java +++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java @@ -49,7 +49,7 @@ public class Complex implements Serializable { public static final Complex I = new Complex(0, 1); // CHECKSTYLE: stop ConstantName /** A complex number representing "NaN + NaNi" */ - public static final Complex NAN = new Complex(Double.NaN, Double.NaN); + private static final Complex NAN = new Complex(Double.NaN, Double.NaN); // CHECKSTYLE: resume ConstantName /** A complex number representing "+INF + INFi" */ public static final Complex INF = new Complex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY); @@ -272,10 +272,10 @@ public class Complex implements Serializable { * {@code Infinite} and {@code NaN} values are handled according to the * following rules, applied in the order presented: * <ul> - * <li>If {@code divisor} equals {@link #ZERO}, {@link #NaN} is returned. + * <li>If {@code divisor} equals {@link #ZERO}, {@link #NAN} is returned. * </li> * <li>If {@code this} and {@code divisor} are both infinite, - * {@link #NaN} is returned. + * {@link #NAN} is returned. * </li> * <li>If {@code this} is finite (i.e., has no {@code Infinite} or * {@code NaN} parts) and {@code divisor} is infinite (one or both parts