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/08/05 17:56:34 UTC
[commons-compress] branch master updated: Case not needed,
parens not needed.
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 749ba7d Case not needed, parens not needed.
749ba7d is described below
commit 749ba7d3f556f4cf0710554025ecd0c04545fdc5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Aug 5 13:56:32 2021 -0400
Case not needed, parens not needed.
---
src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java | 2 +-
.../apache/commons/compress/harmony/unpack200/bytecode/CPMember.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java b/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java
index a31907e..41a07c3 100644
--- a/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java
+++ b/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java
@@ -104,7 +104,7 @@ public class RunCodec extends Codec {
}
} else 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;
diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/CPMember.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/CPMember.java
index 18ad400..afc917b 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/CPMember.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/CPMember.java
@@ -46,7 +46,7 @@ public class CPMember extends ClassFileEntry {
this.name = name;
this.descriptor = descriptor;
this.flags = (short) flags;
- this.attributes = (attributes == null ? Collections.EMPTY_LIST : attributes);
+ this.attributes = attributes == null ? Collections.EMPTY_LIST : attributes;
if (name == null || descriptor == null) {
throw new NullPointerException("Null arguments are not allowed");
}