mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
specify class name when throwing CloneNotSupportedException
This commit is contained in:
@ -5,7 +5,7 @@ public class Object {
|
||||
if (this instanceof Cloneable) {
|
||||
return clone(this);
|
||||
} else {
|
||||
throw new CloneNotSupportedException();
|
||||
throw new CloneNotSupportedException(getClass().getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user