mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
don't return inner bytes
This commit is contained in:
parent
75e9383a5c
commit
8df560eed2
@ -109,11 +109,12 @@ public class ClassID implements Duplicatable, GenericRecord {
|
||||
|
||||
/**
|
||||
* Gets the bytes making out the class ID. They are returned in correct order, i.e. big-endian.
|
||||
* This no longer returns a reference to the internal byte array, but a copy of it.
|
||||
*
|
||||
* @return the bytes making out the class ID.
|
||||
*/
|
||||
public byte[] getBytes() {
|
||||
return bytes;
|
||||
return bytes.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user