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