Skip to content

Commit

Permalink
RemotingCommandException is not thrown in a method (#4030)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xiao-shuang committed Mar 28, 2022
1 parent c121565 commit 818ef21
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ private RemotingCommand getTopicsByCluster(ChannelHandlerContext ctx,
}

private RemotingCommand getSystemTopicListFromNs(ChannelHandlerContext ctx,
RemotingCommand request) throws RemotingCommandException {
RemotingCommand request) {
final RemotingCommand response = RemotingCommand.createResponseCommand(null);

TopicList systemTopicList = this.namesrvController.getRouteInfoManager().getSystemTopicList();
Expand All @@ -501,7 +501,7 @@ private RemotingCommand getSystemTopicListFromNs(ChannelHandlerContext ctx,
}

private RemotingCommand getUnitTopicList(ChannelHandlerContext ctx,
RemotingCommand request) throws RemotingCommandException {
RemotingCommand request) {
final RemotingCommand response = RemotingCommand.createResponseCommand(null);

TopicList unitTopics = this.namesrvController.getRouteInfoManager().getUnitTopics();
Expand All @@ -514,7 +514,7 @@ private RemotingCommand getUnitTopicList(ChannelHandlerContext ctx,
}

private RemotingCommand getHasUnitSubTopicList(ChannelHandlerContext ctx,
RemotingCommand request) throws RemotingCommandException {
RemotingCommand request) {
final RemotingCommand response = RemotingCommand.createResponseCommand(null);

TopicList hasUnitSubTopicList = this.namesrvController.getRouteInfoManager().getHasUnitSubTopicList();
Expand All @@ -526,8 +526,7 @@ private RemotingCommand getHasUnitSubTopicList(ChannelHandlerContext ctx,
return response;
}

private RemotingCommand getHasUnitSubUnUnitTopicList(ChannelHandlerContext ctx, RemotingCommand request)
throws RemotingCommandException {
private RemotingCommand getHasUnitSubUnUnitTopicList(ChannelHandlerContext ctx, RemotingCommand request) {
final RemotingCommand response = RemotingCommand.createResponseCommand(null);

TopicList hasUnitSubUnUnitTopicList = this.namesrvController.getRouteInfoManager().getHasUnitSubUnUnitTopicList();
Expand Down

0 comments on commit 818ef21

Please sign in to comment.