Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Checkstyle clean up about 200 trivial violation
[yangtools.git]
/
common
/
util
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
util
/
concurrent
/
ReflectiveExceptionMapper.java
diff --git
a/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ReflectiveExceptionMapper.java
b/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ReflectiveExceptionMapper.java
index d49f80662d674f366a2645730bdd9638f1860e97..b00ed4f30472227496464bae1ac1aea60da44e9d 100644
(file)
--- a/
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ReflectiveExceptionMapper.java
+++ b/
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ReflectiveExceptionMapper.java
@@
-45,7
+45,8
@@
public final class ReflectiveExceptionMapper<X extends Exception> extends Except
* @throws IllegalArgumentException when the supplied exception class does not pass sanity checks
* @throws SecurityException when the required constructor is not accessible
*/
* @throws IllegalArgumentException when the supplied exception class does not pass sanity checks
* @throws SecurityException when the required constructor is not accessible
*/
- public static <X extends Exception> ReflectiveExceptionMapper<X> create(final String opName, final Class<X> exceptionType) throws SecurityException {
+ public static <X extends Exception> ReflectiveExceptionMapper<X> create(final String opName,
+ final Class<X> exceptionType) throws SecurityException {
final Constructor<X> c;
try {
c = exceptionType.getConstructor(String.class, Throwable.class);
final Constructor<X> c;
try {
c = exceptionType.getConstructor(String.class, Throwable.class);
@@
-55,7
+56,8
@@
public final class ReflectiveExceptionMapper<X extends Exception> extends Except
try {
c.newInstance(opName, new Throwable());
try {
c.newInstance(opName, new Throwable());
- } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
+ } catch (InstantiationException | IllegalAccessException | IllegalArgumentException
+ | InvocationTargetException e) {
throw new IllegalArgumentException("Constructor " + c.getName() + " failed to pass instantiation test", e);
}
throw new IllegalArgumentException("Constructor " + c.getName() + " failed to pass instantiation test", e);
}