File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/ru/mystamps/web/util Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package ru .mystamps .web .util ;
19
19
20
+ import java .lang .reflect .InvocationTargetException ;
20
21
import java .util .ArrayList ;
21
22
import java .util .Collections ;
22
23
import java .util .Comparator ;
@@ -126,12 +127,11 @@ public static <T extends StampsCatalog> Set<T> fromString(
126
127
result .add (
127
128
ConstructorUtils .invokeConstructor (elementClass , number )
128
129
);
129
-
130
- } catch (RuntimeException ex ) { // NOPMD
131
- throw ex ;
132
-
133
- } catch (Exception ex ) { // NOPMD
134
- throw new RuntimeException (ex ); // NOPMD
130
+ } catch (NoSuchMethodException |
131
+ IllegalAccessException |
132
+ InvocationTargetException |
133
+ InstantiationException ex ) {
134
+ throw new RuntimeException (ex ); // NOPMD: AvoidThrowingRawExceptionTypes
135
135
}
136
136
}
137
137
You can’t perform that action at this time.
0 commit comments