/** * Create new instance. * @since 1.2.15 * @param r String representation of throwable. */ public ThrowableInformation(final String[] r) { if (r != null) { rep = (String[]) r.clone(); } }
public LogPosition clone() { try { return (LogPosition) super.clone(); } catch (CloneNotSupportedException e) { // Never happend return null; } }
@Override protected CLICommand createClone() { try { return (CLICommand)clone(); } catch (CloneNotSupportedException e) { throw new AssertionError(e); } } }
/** * Clone this object. * * @return a clone of this object. */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { throw new InternalError("Clone error"); } }
/** * Clone this object. * * @return a clone of this object. */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { throw new InternalError("Clone error"); } }
/** * Clone this object. * * @return a clone of this object. */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { throw new InternalError("Clone error"); } }
/** * Creates and returns a copy of this object. * The constant pool object is shared between this object * and the cloned object. */ public Object clone() throws CloneNotSupportedException { ExceptionTable r = (ExceptionTable)super.clone(); r.entries = new ArrayList(entries); return r; }
/** * Constructor that creates a matcher from a character array. * * @param chars the characters to match, must not be null */ CharSetMatcher(char chars[]) { super(); this.chars = (char[]) chars.clone(); Arrays.sort(this.chars); }
@Override public WordIterator clone() { try { return (WordIterator) super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } }
@Override public Offset clone() { try { return (Offset) super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } }
public RequestedGlobalProperties clone() { try { return (RequestedGlobalProperties) super.clone(); } catch (CloneNotSupportedException cnse) { // should never happen, but propagate just in case throw new RuntimeException(cnse); } }
@Override public Costs clone() { try { return (Costs) super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); // should never happen } } }
/** * Returns a deep copy of this zip entry. */ @Override public Object clone() { try { TinkerZipEntry result = (TinkerZipEntry) super.clone(); result.extra = extra != null ? extra.clone() : null; return result; } catch (CloneNotSupportedException e) { throw new AssertionError(e); } }
@Override public MockResponse clone() { try { MockResponse result = (MockResponse) super.clone(); result.headers = headers.build().newBuilder(); result.promises = new ArrayList<>(promises); return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
@Override public CloneableString clone() throws CloneNotSupportedException { return (CloneableString)super.clone(); } }
public Object clone() throws CloneNotSupportedException { ByteVector bv = (ByteVector)super.clone(); bv.buffer = (byte[])buffer.clone(); return bv; }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
@Override public SparseIntArray clone() { SparseIntArray clone = null; try { clone = (SparseIntArray) super.clone(); clone.mKeys = mKeys.clone(); clone.mValues = mValues.clone(); } catch (CloneNotSupportedException cnse) { /* ignore */ } return clone; }
@Override public SparseBoolArray clone() { SparseBoolArray clone = null; try { clone = (SparseBoolArray) super.clone(); clone.mKeys = mKeys.clone(); clone.mValues = mValues.clone(); } catch (CloneNotSupportedException cnse) { /* ignore */ } return clone; }
final void testAllDeclarations() throws Exception { checkState(method == null); Method[] methods = getClass().getMethods(); Arrays.sort( methods, new Comparator<Method>() { @Override public int compare(Method a, Method b) { return a.getName().compareTo(b.getName()); } }); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone(); tester.method = method; method.invoke(tester, new Object[] {null}); } } }