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-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 0765eaf8 Use modern Map APIs
0765eaf8 is described below

commit 0765eaf81c948449cf7cdd0c0f8967c4b010e0da
Author: Gary David Gregory (Code signing key) <ggreg...@apache.org>
AuthorDate: Fri Jul 7 00:02:08 2023 -0400

    Use modern Map APIs
---
 src/main/java/org/apache/bcel/generic/InstructionHandle.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/bcel/generic/InstructionHandle.java 
b/src/main/java/org/apache/bcel/generic/InstructionHandle.java
index 0cacae5e..c7a2057c 100644
--- a/src/main/java/org/apache/bcel/generic/InstructionHandle.java
+++ b/src/main/java/org/apache/bcel/generic/InstructionHandle.java
@@ -136,10 +136,7 @@ public class InstructionHandle {
      * @param key the key object to store/retrieve the attribute
      */
     public Object getAttribute(final Object key) {
-        if (attributes != null) {
-            return attributes.get(key);
-        }
-        return null;
+        return attributes != null ? attributes.get(key) : null;
     }
 
     /**

Reply via email to