Commit ace5dbf0 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥 Committed by GitHub
Browse files

Merge pull request #31 from Syncleus/exception

refactor: fixed a case of returning a raw RuntimeException.
parents bd8920cf d8c28456
......@@ -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