@Override public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
public WebServiceField clone() { try { return (WebServiceField) super.clone(); } catch ( CloneNotSupportedException e ) { e.printStackTrace(); return null; } }
/** * * Overrides the standard <code>java.lang.Object.clone</code> * method to return a copy of this cookie. * * */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e.getMessage()); } } }
} catch (CloneNotSupportedException e) { e.printStackTrace(); RuntimeException rte = new RuntimeException(e.getMessage()); throw rte;
@Override public FloatData clone() throws CloneNotSupportedException { try { FloatData data = (FloatData)super.clone(); return data; } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } }
} catch (CloneNotSupportedException e) { e.printStackTrace(); RuntimeException rte = new RuntimeException(e.getMessage()); throw rte;
/** * Creates and returns a copy of this object. * @return A copy of this object. */ @Override public Object clone() { try { return super.clone(); } catch(CloneNotSupportedException e) { throw new RuntimeException(e.toString()); } }
@Override // enforce that this class is a singleton public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
@Override public AbstractMatrix clone(){ try { return (AbstractMatrix) super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } return null; }
/** * shallow clone */ @Override public Options clone() { try { return (Options)super.clone(); } catch(CloneNotSupportedException ex) { throw new RuntimeException("clone() not properly implemented: " + ex.getMessage(), ex); } } /**
/** * Creates and returns a copy of this object. * @return A copy of the Msg. */ @Override public Object clone() { try { return super.clone(); } catch(CloneNotSupportedException e) { throw new RuntimeException(e.toString()); } }
@Override public InternalVertex clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
@Override public Object clone() { Object dolly = null; try { dolly = super.clone(); } catch (final CloneNotSupportedException e) { // should be fine e.printStackTrace(); //NOSONAR } return dolly; }
/** * shallow clone */ @Override public Options clone() { try { return (Options)super.clone(); } catch(CloneNotSupportedException ex) { throw new RuntimeException("clone() not properly implemented: " + ex.getMessage(), ex); } } /**
/** * Creates and returns a copy of this object. * @return A copy of the variable. */ @Override public Object clone() { try { return super.clone(); } catch(CloneNotSupportedException e) { throw new RuntimeException(e.toString()); } }
@Override public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
protected Object clone() { try { SymbMap copy = (SymbMap) super.clone(); copy.entries = new NameSpaceSymbEntry[entries.length]; System.arraycopy(entries, 0, copy.entries, 0, entries.length); copy.keys = new String[keys.length]; System.arraycopy(keys, 0, copy.keys, 0, keys.length); return copy; } catch (CloneNotSupportedException e) { e.printStackTrace(); } return null; } }
/** * This method returns a structure of the given name. If the name does not exists then null is returned. * @param name * the name of the structure * @return the required structure or null if the given name is inapropriate */ public Structure getStructure(String name) { try { return (Structure) structuresMap.get(name).clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public DoubleData clone() throws CloneNotSupportedException { try { DoubleData data = (DoubleData)super.clone(); data.sampleRate = sampleRate; data.collectTime = collectTime; data.firstSampleNumber = firstSampleNumber; return data; } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } } }
@Override @SuppressWarnings("CloneDoesntCallSuperClone") // CHECKSTYLE:OFF public Level clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); } // CHECKSTYLE:ON