Use array.clone() instead of manual array creation
This commit is contained in:
committed by
Juergen Hoeller
parent
f61d728db9
commit
f2b3953d76
@@ -276,9 +276,7 @@ public class SimpleMailMessage implements MailMessage, Serializable {
|
||||
}
|
||||
|
||||
private static String[] copy(String[] state) {
|
||||
String[] copy = new String[state.length];
|
||||
System.arraycopy(state, 0, copy, 0, state.length);
|
||||
return copy;
|
||||
return state.clone();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user