Rev 148 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 148 | Rev 158 | ||
---|---|---|---|
Line 356... | Line 356... | ||
356 | }
|
356 | }
|
357 | 357 | ||
358 | public static String getKeyName(Object obj) { |
358 | public static String getKeyName(Object obj) { |
359 | if (obj instanceof Class<?>) { |
359 | if (obj instanceof Class<?>) { |
360 | Class<?> k = (Class<?>) obj; |
360 | Class<?> k = (Class<?>) obj; |
361 | String s = k.getSimpleName(); |
- | |
362 | StringBuilder sb = new StringBuilder(s.length()); |
- | |
363 | sb.append(s.substring(0, 1).toLowerCase()); |
- | |
364 | if (s.length() > 1) { |
- | |
365 | sb.append(s.substring(1)); |
- | |
366 | }
|
- | |
367 | return sb.toString(); |
- | |
- | 361 | return k.getName(); |
|
368 | }
|
362 | }
|
369 | return obj.toString(); |
363 | return obj.toString(); |
370 | }
|
364 | }
|
371 | 365 | ||
372 | public static Method findMethodToGet(Class<?> target, String name) { |
366 | public static Method findMethodToGet(Class<?> target, String name) { |