This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.2.X
in repository https://gitbox.apache.org/repos/asf/mina-ftpserver.git
The following commit(s) were added to refs/heads/1.2.X by this push:
new 175eb4d0 Use the vararg invocation syntax; don't create arrays
unnecessarily for single arg calls
175eb4d0 is described below
commit 175eb4d06da9b80554ef6099dc09dcc541708283
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: