Skip to content

Commit

Permalink
Add the lost annotation of the Subclass of Protocol. (#8352)
Browse files Browse the repository at this point in the history
* Add the lost annotation of the Subclass of Protocol.

* rollback the class generate in native.
  • Loading branch information
brotherlu-xcq committed Jul 27, 2021
1 parent 3f3cea7 commit 3d1d326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -40,13 +40,15 @@ public int getDefaultPort() {
/* (non-Javadoc)
* @see org.apache.dubbo.rpc.Protocol#export(org.apache.dubbo.rpc.Invoker)
*/
@Override
public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException {
return Mockito.mock(Exporter.class);
}

/* (non-Javadoc)
* @see org.apache.dubbo.rpc.Protocol#refer(java.lang.Class, org.apache.dubbo.common.URL)
*/
@Override
public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException {

final URL u = url;
Expand Down
Expand Up @@ -62,6 +62,7 @@ protected static String serviceKey(int port, String serviceName, String serviceV
return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup);
}

@Override
public List<ProtocolServer> getServers() {
return Collections.unmodifiableList(new ArrayList<>(serverMap.values()));
}
Expand Down

0 comments on commit 3d1d326

Please sign in to comment.