You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/08/20 22:00:48 UTC
[maven-wagon] branch stabilize updated: Proper random usage
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
The following commit(s) were added to refs/heads/stabilize by this push:
new 5ebc16b Proper random usage
5ebc16b is described below
commit 5ebc16b7a2d9ee38d7bb3a7d0969c7d81c2b5704
Author: rfscholte <rf...@apache.org>
AuthorDate: Wed Aug 21 00:00:40 2019 +0200
Proper random usage
---
.../src/main/java/org/apache/maven/wagon/WagonTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java b/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
index 28ec811..78931be 100644
--- a/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
+++ b/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
@@ -140,7 +140,7 @@ public abstract class WagonTestCase
public static ServerSocket newServerSocket( int... ports )
{
// there can be a timing issue while handing over the port to the actual server, so start at random index
- final int offset = new Random( ports.length ).nextInt();
+ final int offset = new Random().nextInt( ports.length );
for ( int index = 0 ; index < ports.length; index++ )
{