Skip to content

Commit

Permalink
Remove useless code in InjvmProtocolTest (#7855)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoheng1 authored May 25, 2021
1 parent 472bdf7 commit 2dace54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Exporter<?>> exporters = new ArrayList<Exporter<?>>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 2dace54

Please sign in to comment.