From 2dace545c452e2bea58d3ea35124d68e1d1dfb06 Mon Sep 17 00:00:00 2001 From: xiaoheng1 <2018154970@qq.com> Date: Tue, 25 May 2021 20:40:16 +0800 Subject: [PATCH] Remove useless code in InjvmProtocolTest (#7855) --- .../apache/dubbo/rpc/protocol/injvm/InjvmProtocolTest.java | 4 ---- .../org/apache/dubbo/rpc/protocol/injvm/ProtocolTest.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmProtocolTest.java b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmProtocolTest.java index 8efe2a63c4f..0370c6b72e9 100644 --- a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmProtocolTest.java +++ b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmProtocolTest.java @@ -51,10 +51,6 @@ public class InjvmProtocolTest { - static { - InjvmProtocol injvm = InjvmProtocol.getInjvmProtocol(); - } - private Protocol protocol = ExtensionLoader.getExtensionLoader(Protocol.class).getAdaptiveExtension(); private ProxyFactory proxy = ExtensionLoader.getExtensionLoader(ProxyFactory.class).getAdaptiveExtension(); private List> exporters = new ArrayList>(); diff --git a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/ProtocolTest.java b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/ProtocolTest.java index 12de553d195..f0dc5a412cf 100644 --- a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/ProtocolTest.java +++ b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/ProtocolTest.java @@ -36,10 +36,6 @@ public String echo(String e) { } }; - static { - InjvmProtocol injvm = InjvmProtocol.getInjvmProtocol(); - } - ProxyFactory proxyFactory = ExtensionLoader.getExtensionLoader(ProxyFactory.class).getExtension("javassist"); URL url = URL.valueOf("injvm://localhost:0/org.apache.dubbo.rpc.support.IEcho?interface=org.apache.dubbo.rpc.support.IEcho");