git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1067021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2011-02-03 22:57:47 +00:00
parent d51bc887a3
commit e39e773c19
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}