Skip to content

Commit 5dbaec8

Browse files
committed
Merge branch '2.1'
2 parents 3ee04b1 + e16d51b commit 5dbaec8

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

core/src/main/java/org/apache/accumulo/core/clientImpl/ClientContext.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.LOCATION;
2828

2929
import java.lang.Thread.UncaughtExceptionHandler;
30-
import java.lang.reflect.InvocationTargetException;
3130
import java.net.URL;
3231
import java.nio.file.Path;
3332
import java.util.Collection;
@@ -206,9 +205,7 @@ public String getGroup() {
206205
}
207206
});
208207
return scanServerSelector;
209-
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException
210-
| IllegalArgumentException | InvocationTargetException | NoSuchMethodException
211-
| SecurityException e) {
208+
} catch (ReflectiveOperationException | IllegalArgumentException | SecurityException e) {
212209
throw new RuntimeException("Error creating ScanServerSelector implementation: " + clazz, e);
213210
}
214211
}

server/base/src/main/java/org/apache/accumulo/server/metrics/MetricsInfoImpl.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static org.apache.hadoop.util.StringUtils.getTrimmedStrings;
2222

23-
import java.lang.reflect.InvocationTargetException;
2423
import java.time.Duration;
2524
import java.util.ArrayList;
2625
import java.util.Arrays;
@@ -248,8 +247,7 @@ public DistributionStatisticConfig configure(Meter.Id id,
248247
registry.config().commonTags(commonTags.values());
249248
registry.config().meterFilter(replicationFilter);
250249
addRegistry(registry);
251-
} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException
252-
| InstantiationException | IllegalAccessException ex) {
250+
} catch (ReflectiveOperationException ex) {
253251
LOG.warn("Could not load registry {}", factoryName, ex);
254252
}
255253
}
@@ -269,8 +267,7 @@ public DistributionStatisticConfig configure(Meter.Id id,
269267

270268
@VisibleForTesting
271269
static MeterRegistry getRegistryFromFactory(final String factoryName, final ServerContext context)
272-
throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException,
273-
InstantiationException, IllegalAccessException {
270+
throws ReflectiveOperationException {
274271
try {
275272
LOG.info("look for meter spi registry factory {}", factoryName);
276273
Class<? extends MeterRegistryFactory> clazz =

0 commit comments

Comments
 (0)