mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
remove deprecated shortArrayToByteArray
This commit is contained in:
parent
a2ed8fda3a
commit
71b4b62a6d
@ -45,21 +45,6 @@ public final class SprmUtils {
|
||||
|
||||
public SprmUtils() {}
|
||||
|
||||
/**
|
||||
* @deprecated unused by POI internally
|
||||
*/
|
||||
@Removal(version= "6.0.0")
|
||||
public static byte[] shortArrayToByteArray(short[] convert) {
|
||||
byte[] buf = IOUtils.safelyAllocate(convert.length * (long)LittleEndianConsts.SHORT_SIZE, MAX_RECORD_LENGTH);
|
||||
|
||||
for (int x = 0; x < convert.length; x++)
|
||||
{
|
||||
LittleEndian.putShort(buf, x * LittleEndianConsts.SHORT_SIZE, convert[x]);
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
public static int addSpecialSprm(short instruction, byte[] varParam, List<byte[]> list)
|
||||
{
|
||||
byte[] sprm = new byte[varParam.length + 4];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user