You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/12/01 14:46:59 UTC

[commons-compress] branch master updated (2cead7f -> 50d3e24)

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

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git.


    from 2cead7f  Bump actions/checkout from 2.3.5 to 2.4.0
     new 83ebfde  Fix generics compiler warning.
     new 50d3e24  Bump commons.japicmp.version from 0.15.3 to 0.15.4.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                              | 2 +-
 src/changes/changes.xml                                              | 5 ++++-
 .../java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java  | 4 ++--
 3 files changed, 7 insertions(+), 4 deletions(-)

[commons-compress] 02/02: Bump commons.japicmp.version from 0.15.3 to 0.15.4.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 50d3e24520b3310530e4da072714bb26cbbc4a01
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 1 09:46:56 2021 -0500

    Bump commons.japicmp.version from 0.15.3 to 0.15.4.
---
 pom.xml                 | 2 +-
 src/changes/changes.xml | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 8492fdd..251d020 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,7 +76,7 @@ Brotli, Zstandard and ar, cpio, jar, tar, zip, dump, 7z, arj.
     <pax.exam.version>4.13.1</pax.exam.version>
     <slf4j.version>1.7.30</slf4j.version>
     <commons.jacoco.version>0.8.7</commons.jacoco.version>
-    <commons.japicmp.version>0.15.3</commons.japicmp.version>
+    <commons.japicmp.version>0.15.4</commons.japicmp.version>
     <commons.javadoc.version>3.3.1</commons.javadoc.version>
     <asm.version>9.2</asm.version>
   </properties>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 26dedb1..59d804d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -42,7 +42,7 @@ The <action> type attribute can be add,update,fix,remove.
     <title>Apache Commons Compress Release Notes</title>
   </properties>
   <body>
-    <release version="1.22" date="not released, yet">
+    <release version="1.22" date="not released, yet (Java 8)">
       <!-- FIX -->
       <action type="fix" dev="ggregory" due-to="Gary Gregory">
         Fix some compiler warnings in pack200 packages.
@@ -87,6 +87,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="update" dev="kinow" due-to="Dependabot">
         Bump actions/cache from 2.1.6 to 2.1.7 #230.
       </action>
+      <action type="update" dev="kinow" due-to="Gary Gregory">
+        Bump commons.japicmp.version from 0.15.3 to 0.15.4.
+      </action>
     </release>
     <release version="1.21" date="2021-07-12"
              description="Release 1.21 (Java 8)

[commons-compress] 01/02: Fix generics compiler warning.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 83ebfde7c3ce369784e8e56578ab2391def97489
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 1 09:44:25 2021 -0500

    Fix generics compiler warning.
---
 .../java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java b/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java
index 39cac37..8bd7020 100644
--- a/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java
+++ b/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java
@@ -318,7 +318,7 @@ public final class BHSDCodec extends Codec {
             throw new Pack200Exception("unable to encode");
         }
 
-        final List byteList = new ArrayList();
+        final List<Byte> byteList = new ArrayList<>();
         for (int n = 0; n < b; n++) {
             long byteN;
             if (z < l) {
@@ -338,7 +338,7 @@ public final class BHSDCodec extends Codec {
         }
         final byte[] bytes = new byte[byteList.size()];
         for (int i = 0; i < bytes.length; i++) {
-            bytes[i] = ((Byte) byteList.get(i)).byteValue();
+            bytes[i] = byteList.get(i).byteValue();
         }
         return bytes;
     }