mirror of
https://github.com/corda/corda.git
synced 2025-02-06 02:59:15 +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) {
|
if (this instanceof Cloneable) {
|
||||||
return clone(this);
|
return clone(this);
|
||||||
} else {
|
} else {
|
||||||
throw new CloneNotSupportedException();
|
throw new CloneNotSupportedException(getClass().getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user