mirror of
https://github.com/corda/corda.git
synced 2025-01-28 23:24:29 +00:00
specify class name when throwing CloneNotSupportedException
This commit is contained in:
parent
f907d9e08f
commit
38e2abb818
@ -5,7 +5,7 @@ public class Object {
|
||||
if (this instanceof Cloneable) {
|
||||
return clone(this);
|
||||
} else {
|
||||
throw new CloneNotSupportedException();
|
||||
throw new CloneNotSupportedException(getClass().getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user