equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
38 |
38 |
39 public class CloneArray { |
39 public class CloneArray { |
40 static Object replacement; |
40 static Object replacement; |
41 |
41 |
42 static class Resolver implements Serializable { |
42 static class Resolver implements Serializable { |
|
43 private static final long serialVersionUID = 1L; |
|
44 |
43 private Object readResolve() throws ObjectStreamException { |
45 private Object readResolve() throws ObjectStreamException { |
44 return replacement; |
46 return replacement; |
45 } |
47 } |
46 } |
48 } |
47 |
49 |