You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2021/02/22 08:20:29 UTC
[dubbo] branch 3.0 updated: remove duplicate constant variable
declaration
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new d80c45b remove duplicate constant variable declaration
d80c45b is described below
commit d80c45b086cca14f3fcf9dff72e0edfc9edd6659
Author: ken.lj <ke...@gmail.com>
AuthorDate: Mon Feb 22 16:19:58 2021 +0800
remove duplicate constant variable declaration
---
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java | 1 -
.../java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java
index 1929ea3..c2c4a18 100644
--- a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java
+++ b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java
@@ -96,7 +96,6 @@ public interface Constants {
*/
String REFER_KEY = "refer";
- String TIMESTAMP_KEY = "timestamp";
/**
* The key name for export URL in register center
*/
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
index ba6e0c9..568f660 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
@@ -38,9 +38,9 @@ import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
import static org.apache.dubbo.common.constants.CommonConstants.INTERFACE_KEY;
+import static org.apache.dubbo.common.constants.CommonConstants.TIMESTAMP_KEY;
import static org.apache.dubbo.rpc.cluster.Constants.EXPORT_KEY;
import static org.apache.dubbo.rpc.cluster.Constants.REFER_KEY;
-import static org.apache.dubbo.rpc.cluster.Constants.TIMESTAMP_KEY;
/**
* AbstractRegistryFactory. (SPI, Singleton, ThreadSafe)