Fix incorrect exception message
This commit is contained in:
parent
1eafffbec5
commit
646cd455ea
@ -42,7 +42,7 @@ public final class TypeParameterFinder {
|
|||||||
Type[] types = ((ParameterizedType) currentClass.getGenericSuperclass()).getActualTypeArguments();
|
Type[] types = ((ParameterizedType) currentClass.getGenericSuperclass()).getActualTypeArguments();
|
||||||
if (types.length - 1 < typeParamIndex || !(types[0] instanceof Class)) {
|
if (types.length - 1 < typeParamIndex || !(types[0] instanceof Class)) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"cannot determine the inbound message type of " + thisClass.getSimpleName());
|
"cannot determine the type of the type parameter of " + thisClass.getSimpleName());
|
||||||
}
|
}
|
||||||
|
|
||||||
messageType = (Class<?>) types[0];
|
messageType = (Class<?>) types[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user