(Class<?> type)
| 98 | } |
| 99 | |
| 100 | private static String getClassName(Class<?> type) { |
| 101 | String className = checkNotNull(type, "type").getSimpleName(); |
| 102 | if (!className.isEmpty()) { |
| 103 | return className; |
| 104 | } |
| 105 | // + 1 removes the separating '.' |
| 106 | return type.getName().substring(type.getPackage().getName().length() + 1); |
| 107 | } |
| 108 | |
| 109 | public String shortName() { |
| 110 | return typeName + "<" + id + ">"; |