jts
jts copied to clipboard
copy() methods should have assertions that they are called from their own class
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.