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/mina-ftpserver.git
The following commit(s) were added to refs/heads/master by this push:
new b49bdfca Use the vararg invocation syntax; don't create arrays
unnecessarily for single arg calls
b49bdfca is described below
commit b49bdfcab3debb6b1f2484f867bf3cf51784e198
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 5 08:38:40 2023 -0400
Use the vararg invocation syntax; don't create arrays unnecessarily for
single arg calls
---
.../java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java
b/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java
index 6389ee6a..53d9cae0 100644
--- a/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java
+++ b/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java
@@ -175,7 +175,7 @@ public class RemoteIpFilter extends
CopyOnWriteArraySet<Subnet> implements
LOGGER
.debug(
"Allowing connection from {} because
it matches with the whitelist subnet {}",
- new Object[] { address, subnet });
+ address, subnet);
}
return true;
}
@@ -184,7 +184,7 @@ public class RemoteIpFilter extends
CopyOnWriteArraySet<Subnet> implements
LOGGER
.debug(
"Denying connection from {} because it does
not match any of the whitelist subnets",
- new Object[] { address });
+ address);
}
return false;
case DENY:
@@ -193,7 +193,7 @@ public class RemoteIpFilter extends
CopyOnWriteArraySet<Subnet> implements
LOGGER
.debug(
"Allowing connection from {} because
blacklist is empty",
- new Object[] { address });
+ address);
}
return true;
}
@@ -203,7 +203,7 @@ public class RemoteIpFilter extends
CopyOnWriteArraySet<Subnet> implements
LOGGER
.debug(
"Denying connection from {} because it
matches with the blacklist subnet {}",
- new Object[] { address, subnet });
+ address, subnet);
}
return false;
}
@@ -212,7 +212,7 @@ public class RemoteIpFilter extends
CopyOnWriteArraySet<Subnet> implements
LOGGER
.debug(
"Allowing connection from {} because it does
not match any of the blacklist subnets",
- new Object[] { address });
+ address);
}
return true;
default: