Skip to content

Commit

Permalink
fix #7854 Remove useless code in InjvmProtocolTest
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoheng1 committed May 24, 2021
1 parent ebe0687 commit e342a31
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 e342a31

Please sign in to comment.