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/12/08 16:15:45 UTC
[commons-compress] 14/38: Use Java Objects class
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 1ce3c8ea5b00e8e2551f56563d0668ea352e9090
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 8 11:06:30 2022 -0500
Use Java Objects class
---
.../compress/harmony/unpack200/bytecode/ConstantValueAttribute.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/ConstantValueAttribute.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/ConstantValueAttribute.java
index 8f321c0b..f0319972 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/ConstantValueAttribute.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/ConstantValueAttribute.java
@@ -52,11 +52,7 @@ public class ConstantValueAttribute extends Attribute {
return false;
}
final ConstantValueAttribute other = (ConstantValueAttribute) obj;
- if (entry == null) {
- if (other.entry != null) {
- return false;
- }
- } else if (!entry.equals(other.entry)) {
+ if (!Objects.equals(entry, other.entry)) {
return false;
}
return true;