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

jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 559a4da1398 [ISSUE #21573] Update datatype specifier in the input 
parameter to match the imeplementation in the guava library (#21674)
559a4da1398 is described below

commit 559a4da13988cd6c1bdc4c8c646d18793e995e7b
Author: Karthick Balathandayuthapani 
<[email protected]>
AuthorDate: Tue Oct 25 08:20:57 2022 +0530

    [ISSUE #21573] Update datatype specifier in the input parameter to match 
the imeplementation in the guava library (#21674)
---
 .../org/apache/shardingsphere/agent/config/PluginConfiguration.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/agent/api/src/main/java/org/apache/shardingsphere/agent/config/PluginConfiguration.java
 
b/agent/api/src/main/java/org/apache/shardingsphere/agent/config/PluginConfiguration.java
index fec7dde0cb7..407119afdeb 100644
--- 
a/agent/api/src/main/java/org/apache/shardingsphere/agent/config/PluginConfiguration.java
+++ 
b/agent/api/src/main/java/org/apache/shardingsphere/agent/config/PluginConfiguration.java
@@ -46,6 +46,6 @@ public final class PluginConfiguration {
      */
     public void validate(final String type) {
         Preconditions.checkArgument(!Strings.isNullOrEmpty(host), "Hostname of 
%s is required", type);
-        Preconditions.checkArgument(port > 0, "Port `%d` of %s must be a 
positive number", port, type);
+        Preconditions.checkArgument(port > 0, "Port `%s` of %s must be a 
positive number", port, type);
     }
 }

Reply via email to