Use System.arraycopy for copying array

This commit is contained in:
Ville Skyttä 2016-07-28 18:17:19 +03:00 committed by Clebert Suconic
parent 68c7c2575d
commit 559ae07f2f
1 changed files with 1 additions and 3 deletions

View File

@ -104,9 +104,7 @@ public class OpenTypeSupportTest {
private String extractText(CompositeData message) {
Byte content[] = (Byte[]) message.get(CompositeDataConstants.BODY_PREVIEW);
byte out[] = new byte[content.length];
for (int i = 0; i < content.length; i++) {
out[i] = content[i];
}
System.arraycopy(content, 0, out, 0, content.length);
return new String(out);
}