No tabs.
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/fed45c3b Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/fed45c3b Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/fed45c3b Branch: refs/heads/master Commit: fed45c3b1bfe61819655974f2baf5526a1c3c8f9 Parents: d5937fa Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Sat Jan 21 12:06:40 2017 +0100 Committer: Gilles Sadowski <gil...@harfang.homelinux.org> Committed: Sat Jan 21 12:06:40 2017 +0100 ---------------------------------------------------------------------- .../apache/commons/numbers/complex/Complex.java | 44 ++++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fed45c3b/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 12cb384..ae0ebe5 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 @@ -1269,28 +1269,28 @@ public class Complex implements Serializable { return "(" + real + ", " + imaginary + ")"; } - /** - * Checks that an object is not null. - * - * @param o Object to be checked. - */ - private static void checkNotNull(Object o) { - if (o == null) { - throw new RuntimeException("Null Argument to Complex Method"); - } - } - - /** - * Returns {@code true} if the values are equal according to semantics of - * {@link Double#equals(Object)}. - * - * @param x Value - * @param y Value - * @return {@code new Double(x).equals(new Double(y))} - */ - private static boolean equals(double x, double y) { - return new Double(x).equals(new Double(y)); - } + /** + * Checks that an object is not null. + * + * @param o Object to be checked. + */ + private static void checkNotNull(Object o) { + if (o == null) { + throw new RuntimeException("Null Argument to Complex Method"); + } + } + + /** + * Returns {@code true} if the values are equal according to semantics of + * {@link Double#equals(Object)}. + * + * @param x Value + * @param y Value + * @return {@code new Double(x).equals(new Double(y))} + */ + private static boolean equals(double x, double y) { + return new Double(x).equals(new Double(y)); + } /** * Returns an integer hash code representing the given double value.