@SuppressWarnings("unchecked") @Override public Object clone() { Attributes clone; try { clone = (Attributes) super.clone(); } catch (CloneNotSupportedException e) { throw new AssertionError(e); // android-changed } clone.map = (Map<Object, Object>) ((HashMap) map).clone(); return clone; }