You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/07/14 14:23:56 UTC

[commons-rng] 02/23: Avoid duplicate unboxing

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 55ba471042f5a5084ad41ab0f8bb7eedfc2caafe
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Jul 14 13:32:16 2021 +0100

    Avoid duplicate unboxing
---
 .../org/apache/commons/rng/examples/stress/BridgeTestCommand.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/BridgeTestCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/BridgeTestCommand.java
index 74e54f4..b7aee0b 100644
--- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/BridgeTestCommand.java
+++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/BridgeTestCommand.java
@@ -141,8 +141,9 @@ class BridgeTestCommand implements Callable<Void> {
             if (exitValue == null) {
                 LogUtils.error("%s did not exit. Process was killed.", command.get(0));
             } else {
-                if (exitValue.intValue() != 0) {
-                    LogUtils.error("%s exit code = %d", command.get(0), exitValue.intValue());
+                final int value = exitValue;
+                if (value != 0) {
+                    LogUtils.error("%s exit code = %d", command.get(0), value);
                 }
             }