Unverified Commit d8c28456 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

refactor: fixed a case of returning a raw RuntimeException.

parent bd8920cf
......@@ -186,8 +186,7 @@ public class ReflectionUtility {
public static Type getType(final Type[] types, final int pos) {
if (pos >= types.length)
throw new RuntimeException("No type can be found at position "
+ pos);
throw new IndexOutOfBoundsException("No type can be found at position " + pos);
return types[pos];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment