()
| 12 | |
| 13 | public class Object { |
| 14 | protected Object clone() throws CloneNotSupportedException { |
| 15 | if ((this instanceof Cloneable) || getClass().isArray()) { |
| 16 | return clone(this); |
| 17 | } else { |
| 18 | throw new CloneNotSupportedException(getClass().getName()); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | private static native Object clone(Object o); |
| 23 |