You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/12/25 14:38:30 UTC
[shardingsphere] branch master updated: Refactor AgentServiceLoader (#23095)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 7fcba447dd9 Refactor AgentServiceLoader (#23095)
7fcba447dd9 is described below
commit 7fcba447dd9ef053aba9dc06254971a271e31aaa
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Dec 25 22:38:23 2022 +0800
Refactor AgentServiceLoader (#23095)
---
.../org/apache/shardingsphere/agent/core/spi/AgentServiceLoader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentServiceLoader.java b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentServiceLoader.java
index fd1ecb55da4..879fbfedc67 100644
--- a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentServiceLoader.java
+++ b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/spi/AgentServiceLoader.java
@@ -42,8 +42,8 @@ public final class AgentServiceLoader<T> {
}
private void validate(final Class<T> service) {
- Preconditions.checkNotNull(service, "Extension clazz is null.");
- Preconditions.checkArgument(service.isInterface(), "Extension clazz `%s` is not interface.", service);
+ Preconditions.checkNotNull(service, "SPI class is null.");
+ Preconditions.checkArgument(service.isInterface(), "SPI class `%s` is not interface.", service);
}
private Collection<T> register(final Class<T> service) {