From 71b4b62a6de64550e6aea7cf593923f468565673 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 19 Nov 2025 13:43:55 +0100 Subject: [PATCH] remove deprecated shortArrayToByteArray --- .../java/org/apache/poi/hwpf/sprm/SprmUtils.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/SprmUtils.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/SprmUtils.java index bf3fd50c3e..45c1f0d31c 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/SprmUtils.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/SprmUtils.java @@ -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 list) { byte[] sprm = new byte[varParam.length + 4];