git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1067021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d51bc887a3
commit
e39e773c19
|
@ -396,7 +396,7 @@ public static <T> T clone(final T o) {
|
|||
if (o.getClass().isArray()) {
|
||||
final Class<?> componentType = o.getClass().getComponentType();
|
||||
if (!componentType.isPrimitive()) {
|
||||
result = ((Object[])o).clone();
|
||||
result = ((Object[]) o).clone();
|
||||
} else {
|
||||
int length = Array.getLength(o);
|
||||
result = Array.newInstance(componentType, length);
|
||||
|
@ -421,7 +421,7 @@ public static <T> T clone(final T o) {
|
|||
}
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
final T checked = (T)result;
|
||||
final T checked = (T) result;
|
||||
return checked;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue