This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 71b4b62a6d remove deprecated shortArrayToByteArray
71b4b62a6d is described below

commit 71b4b62a6de64550e6aea7cf593923f468565673
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Nov 19 13:43:55 2025 +0100

    remove deprecated shortArrayToByteArray
---
 .../src/main/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<byte[]> list)
     {
         byte[] sprm = new byte[varParam.length + 4];


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to