specify class name when throwing CloneNotSupportedException

This commit is contained in:
Joel Dice 2007-08-22 21:22:44 -06:00
parent f907d9e08f
commit 38e2abb818

View File

@ -5,7 +5,7 @@ public class Object {
if (this instanceof Cloneable) {
return clone(this);
} else {
throw new CloneNotSupportedException();
throw new CloneNotSupportedException(getClass().getName());
}
}