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 569c62b9 Use ternary expression 569c62b9 is described below commit 569c62b9d868ae463c322d0c76edae39865e5bd0 Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Sat Nov 19 15:42:51 2022 -0500 Use ternary expression --- .../org/apache/bcel/util/MemorySensitiveClassPathRepository.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/apache/bcel/util/MemorySensitiveClassPathRepository.java b/src/main/java/org/apache/bcel/util/MemorySensitiveClassPathRepository.java index d4c57368..559f6ddf 100644 --- a/src/main/java/org/apache/bcel/util/MemorySensitiveClassPathRepository.java +++ b/src/main/java/org/apache/bcel/util/MemorySensitiveClassPathRepository.java @@ -52,10 +52,7 @@ public class MemorySensitiveClassPathRepository extends AbstractClassPathReposit @Override public JavaClass findClass(final String className) { final SoftReference<JavaClass> ref = loadedClasses.get(className); - if (ref == null) { - return null; - } - return ref.get(); + return ref == null ? null : ref.get(); } /**