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 2022/02/08 15:31:59 UTC
[commons-compress] branch master updated: Remove unneeded cast.
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
The following commit(s) were added to refs/heads/master by this push:
new 43e8603 Remove unneeded cast.
43e8603 is described below
commit 43e8603c72e6e3008430f6ead800aaaa7765f714
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Feb 8 10:31:56 2022 -0500
Remove unneeded cast.
---
.../java/org/apache/commons/compress/harmony/unpack200/BandSet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
index 03d7840..5818623 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
@@ -106,7 +106,7 @@ public abstract class BandSet {
// }
if (codecUsed instanceof PopulationCodec) {
final PopulationCodec popCodec = (PopulationCodec) codecUsed;
- final int[] favoured = (int[]) popCodec.getFavoured().clone();
+ final int[] favoured = popCodec.getFavoured().clone();
Arrays.sort(favoured);
for (int i = 0; i < band.length; i++) {
final boolean favouredValue = Arrays.binarySearch(favoured, band[i]) > -1;