From c1b3d8c677539453d148c2791ad2e6778561f529 Mon Sep 17 00:00:00 2001 From: chenglu <1285823170@qq.com> Date: Sat, 31 Jul 2021 23:51:10 +0800 Subject: [PATCH] add the lost @Override annotation of Config. --- .../java/org/apache/dubbo/config/AbstractServiceConfig.java | 4 ++++ .../java/org/apache/dubbo/config/ReferenceConfigBase.java | 2 ++ .../src/main/java/org/apache/dubbo/config/ServiceConfig.java | 1 + 3 files changed, 7 insertions(+) diff --git a/dubbo-common/src/main/java/org/apache/dubbo/config/AbstractServiceConfig.java b/dubbo-common/src/main/java/org/apache/dubbo/config/AbstractServiceConfig.java index 74980f247a6..6bbd9bf77e3 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/config/AbstractServiceConfig.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/config/AbstractServiceConfig.java @@ -134,18 +134,22 @@ protected void checkDefault() { } } + @Override public String getVersion() { return version; } + @Override public void setVersion(String version) { this.version = version; } + @Override public String getGroup() { return group; } + @Override public void setGroup(String group) { this.group = group; } diff --git a/dubbo-common/src/main/java/org/apache/dubbo/config/ReferenceConfigBase.java b/dubbo-common/src/main/java/org/apache/dubbo/config/ReferenceConfigBase.java index ac0f7ce5ff2..28d462b1935 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/config/ReferenceConfigBase.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/config/ReferenceConfigBase.java @@ -200,10 +200,12 @@ public static Class determineInterfaceClass(String generic, String interfaceN return null; } + @Override public String getInterface() { return interfaceName; } + @Override public void setInterface(String interfaceName) { this.interfaceName = interfaceName; } diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java index 7e3edb3620c..5064f5205ab 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java @@ -209,6 +209,7 @@ public void init() { serviceMetadata.generateServiceKey(); } + @Override public synchronized void export() { if (this.shouldExport() && !this.exported) { this.init();