Removed "readResolve" method.
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/f872b872 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/f872b872 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/f872b872 Branch: refs/heads/master Commit: f872b872a8308fc5569d061a9755755c5654fc96 Parents: ef955b5 Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Sat Mar 17 23:41:02 2018 +0100 Committer: Gilles Sadowski <gil...@harfang.homelinux.org> Committed: Sat Mar 17 23:41:02 2018 +0100 ---------------------------------------------------------------------- .../java/org/apache/commons/numbers/complex/Complex.java | 11 ----------- 1 file changed, 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/f872b872/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 6823175..14f7744 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 @@ -1280,17 +1280,6 @@ public final class Complex implements Serializable { return result; } - /** - * Resolve the transient fields in a deserialized Complex Object. - * Subclasses will need to override {@link #createComplex} to - * deserialize properly. - * - * @return A Complex instance with all fields resolved. - */ - protected final Object readResolve() { - return new Complex(real, imaginary); - } - /** {@inheritDoc} */ @Override public String toString() {