You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First line of every copy(): assert getClass() == < LiteralOfImplementingClass >.class
Mainly to limit cases where copy is used and only partial copy would be provided. This is not needed in case of clone() because it makes shallow copy automatically.
Something else than assert is also feasible.
The text was updated successfully, but these errors were encountered:
First line of every copy():
assert getClass() == < LiteralOfImplementingClass >.class
Mainly to limit cases where copy is used and only partial copy would be provided. This is not needed in case of clone() because it makes shallow copy automatically.
Something else than assert is also feasible.
The text was updated successfully, but these errors were encountered: