(Type type)
| 601 | } |
| 602 | |
| 603 | @Override |
| 604 | String typeName(Type type) { |
| 605 | try { |
| 606 | Method getTypeName = Type.class.getMethod("getTypeName"); |
| 607 | return (String) getTypeName.invoke(type); |
| 608 | } catch (NoSuchMethodException e) { |
| 609 | throw new AssertionError("Type.getTypeName should be available in Java 8"); |
| 610 | } catch (InvocationTargetException e) { |
| 611 | throw new RuntimeException(e); |
| 612 | } catch (IllegalAccessException e) { |
| 613 | throw new RuntimeException(e); |
| 614 | } |
| 615 | } |
| 616 | }; |
| 617 | |
| 618 |