Fix some low-hanging code quality issue fruits (#1047)

* Fix some low-hanging code quality issue fruits

These include problems such as: use of raw types, unnecessary throw clauses,
unused variables, and more.
This commit is contained in:
Ben McIlwain 2021-04-01 18:04:21 -04:00 committed by GitHub
parent 891745391f
commit 55ef3279e6
79 changed files with 163 additions and 196 deletions

View file

@ -270,7 +270,7 @@ public abstract class ProbingAction implements Callable<ChannelFuture> {
.handler(
new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel outboundChannel) throws Exception {
protected void initChannel(Channel outboundChannel) {
// Uses Handlers from Protocol to fill pipeline in order of provided handlers.
for (Provider<? extends ChannelHandler> handlerProvider :
protocol().handlerProviders()) {

View file

@ -414,7 +414,7 @@ public class EppMessage {
}
}
void addNamespace(String prefix, String namespaceURI) throws Exception {
void addNamespace(String prefix, String namespaceURI) {
checkArgument(!isNullOrEmpty(prefix), "prefix");
checkArgument(!isNullOrEmpty(namespaceURI), "namespaceURI");
if (nsPrefixMap.containsKey(prefix)) {