Enum objects are singletons, they may not be cloned. This method always throws a CloneNotSupportedException. @return does not return. @throws CloneNotSupportedException is always thrown.
()
| 108 | * is always thrown. |
| 109 | */ |
| 110 | @Override |
| 111 | protected final Object clone() throws CloneNotSupportedException { |
| 112 | // luni.4C=Enums may not be cloned |
| 113 | throw new CloneNotSupportedException(Messages.getString("luni.4C")); //$NON-NLS-1$ |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Compares this object to the specified enum object to determine their |
no test coverage detected