
org.solovyev.common.JObject Maven / Gradle / Ivy
package org.solovyev.common;
import org.jetbrains.annotations.NotNull;
/**
* User: serso
* Date: 6/9/12
* Time: 8:50 PM
*/
/**
* Class contains default clone implementation which suppresses {@link CloneNotSupportedException}
*
* NOTE: here we cannot use {@link JCloneable} interface as we might somewhere use it explicitly
*/
public abstract class JObject implements Cloneable {
@NotNull
@Override
public JObject clone() {
try {
return (JObject) super.clone();
} catch (CloneNotSupportedException e) {
throw new AssertionError(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy