tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject tomee git commit: Message
Date Tue, 02 Dec 2014 09:49:33 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 4008161df -> 0115555c8


Message


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/0115555c
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/0115555c
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/0115555c

Branch: refs/heads/tomee-1.7.x
Commit: 0115555c840c600417fda9d65e6e8237e6b5f15d
Parents: 4008161
Author: andygumbrecht <andygumbrecht@apache.org>
Authored: Tue Dec 2 10:48:50 2014 +0100
Committer: andygumbrecht <andygumbrecht@apache.org>
Committed: Tue Dec 2 10:48:50 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/openejb/util/NetworkUtil.java      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/0115555c/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
b/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
index 2b28999..7feef7e 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
@@ -29,14 +29,13 @@ import java.net.SocketException;
 import java.nio.ByteBuffer;
 import java.nio.channels.FileChannel;
 import java.nio.channels.FileLock;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.Properties;
 import java.util.Set;
 import java.util.concurrent.locks.ReentrantLock;
 
-import static java.util.Arrays.asList;
-
 /**
  * TODO: this class is no more an utility class (static)
  * and should be rewritten to get a config + state
@@ -112,7 +111,7 @@ public final class NetworkUtil {
                         retry = 0;
                     }
                     if (retry <= 0) { // 0 retry -> -1
-                        throw new IllegalStateException("Can't find a port matching list
" + asList(portList) + (isRandom ? " with " + originalRetryCount + " retries" : ""));
+                        throw new IllegalStateException("Failed to find a port matching list
" + Arrays.toString(portList) + (isRandom ? " with " + originalRetryCount + " retries" : ""));
                     }
                 } finally {
                     if (s != null) {


Mime
View raw message