List of usage examples for java.lang CloneNotSupportedException CloneNotSupportedException
public CloneNotSupportedException()
CloneNotSupportedException
with no detail message. From source file:csiro.pidsvc.core.Settings.java
protected Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
From source file:net.sourceforge.jabm.strategy.RlStrategy.java
@Override public Strategy clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
From source file:org.saiku.repository.ClassPathRepositoryManager.java
public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); // that'll teach 'em }
From source file:com.netxforge.oss2.core.utilsII.StreamGobbler.java
/** * We override the <code>clone</code> method here to prevent cloning of * our class./*from w w w . j a v a 2 s . c o m*/ * * @throws java.lang.CloneNotSupportedException * To indicate cloning is not allowed * @return Nothing ever really returned since we throw a * CloneNotSupportedException */ public final Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
From source file:org.opennms.core.utils.StreamGobbler.java
/** * We override the <code>clone</code> method here to prevent cloning of * our class./*www .j a va2s . co m*/ * * @throws java.lang.CloneNotSupportedException * To indicate cloning is not allowed * @return Nothing ever really returned since we throw a * CloneNotSupportedException */ @Override public final Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void interruptionNestedNoThrow() throws Exception { ExceptUtils.checkInterruption(new CloneNotSupportedException()); }
From source file:com.lightbox.android.network.HttpHelper.java
/** Not supported * @throws CloneNotSupportedException (every time) */ public Object clone() throws CloneNotSupportedException { // to prevent any kind of cheating throw new CloneNotSupportedException(); }
From source file:edu.kit.dama.mdm.dataorganization.impl.staging.DataOrganizationNodeImpl.java
@Override public IDataOrganizationNode clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void interruptionNestedThrow() { CloneNotSupportedException nested = new CloneNotSupportedException(); Thread.currentThread().interrupt(); try {//ww w . j a va 2s. c o m ExceptUtils.checkInterruption(nested); fail(); } catch (InterruptedException ex) { assertTrue(Thread.interrupted()); assertEquals("Thread execution was interrupted", ex.getMessage()); assertEquals(nested, ex.getCause()); } }
From source file:biz.taoconsulting.dominodav.LockManager.java
/** * Make sure our singleton can't be cloned * /*from w w w .j a v a 2s .c o m*/ * @return actually nothing -- throws an exception * @throws CloneNotSupportedException * -- we don't Clown around */ public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); // that'll teach 'em }