Skip to content

Commit 19799c7

Browse files
committed
Removing duplicates in exceptions.
1 parent 2d1e118 commit 19799c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/zalando/sprocwrapper/globalobjecttransformer/GlobalObjectTransformerLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class GlobalObjectTransformerLoader {
3434
private static volatile ImmutableMap<Class<?>, ObjectMapper<?>> register;
3535

3636
public static <T> ObjectMapper<T> getObjectMapperForClass(final Class<T> genericType) throws InstantiationException,
37-
IllegalAccessException, InvocationTargetException, SecurityException, IllegalArgumentException, NoSuchMethodException, InvocationTargetException {
37+
IllegalAccessException, InvocationTargetException, SecurityException, IllegalArgumentException, NoSuchMethodException {
3838
Preconditions.checkNotNull(genericType, "genericType");
3939

4040
// performance improvement. Volatile field is read only once in the commons scenario.
@@ -56,7 +56,7 @@ public static <T> ObjectMapper<T> getObjectMapperForClass(final Class<T> generic
5656
}
5757

5858
private static ImmutableMap<Class<?>, ObjectMapper<?>> buildMappers() throws InstantiationException,
59-
IllegalAccessException, InvocationTargetException, SecurityException, IllegalArgumentException, NoSuchMethodException, InvocationTargetException {
59+
IllegalAccessException, InvocationTargetException, SecurityException, IllegalArgumentException, NoSuchMethodException {
6060

6161
final Map<Class<?>, ObjectMapper<?>> mappers = new HashMap<>();
6262

src/main/java/org/zalando/sprocwrapper/globalvaluetransformer/GlobalValueTransformerLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class GlobalValueTransformerLoader {
3434
private static boolean scannedClasspath = false;
3535

3636
public static synchronized ValueTransformer<?, ?> getValueTransformerForClass(final Class<?> genericType)
37-
throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InvocationTargetException {
37+
throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
3838

3939
// did we already scanned the classpath for global value transformers?
4040
if (scannedClasspath == false) {

0 commit comments

Comments
 (0)