remove deprecated shortArrayToByteArray

This commit is contained in:
PJ Fanning 2025-11-19 13:43:55 +01:00
parent a2ed8fda3a
commit 71b4b62a6d

View File

@ -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];