Minor language tweaks (LANG-576)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@928465 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-03-28 18:17:48 +00:00
parent f9e141cfe5
commit e4789bd4fc
1 changed files with 5 additions and 6 deletions

View File

@ -345,12 +345,11 @@ public static <T> T clone(final T o) {
/**
* Clone an object if possible. This method is similar to {@link #clone(Object)}, but will
* return the provided instance as return value instead of <code>null</code> if the instance
* is not cloneable. This is convenient in case the caller will use different
* implementations (e.g. of a service) and some of the instances do not allow concurrent
* processing or have state. In such a case the implementation can simply provide a proper
* clone implementation and the caller has not to take care, it will simply call this method
* here.
* return the provided instance as the return value instead of <code>null</code> if the instance
* is not cloneable. This is more convenient if the caller uses different
* implementations (e.g. of a service) and some of the implementations do not allow concurrent
* processing or have state. In such cases the implementation can simply provide a proper
* clone implementation and the caller's code does not have to change.
*
* @param <T> the type of the object
* @param o the object to clone