Use System.arraycopy for copying array
This commit is contained in:
parent
68c7c2575d
commit
559ae07f2f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue