MentaContainer

Compare Revisions

Regard whitespace Rev 154 → Rev 158

/trunk/src/main/java/org/mentacontainer/util/InjectionUtils.java
358,14 → 358,8
public static String getKeyName(Object obj) {
if (obj instanceof Class<?>) {
Class<?> k = (Class<?>) obj;
String s = k.getSimpleName();
StringBuilder sb = new StringBuilder(s.length());
sb.append(s.substring(0, 1).toLowerCase());
if (s.length() > 1) {
sb.append(s.substring(1));
return k.getName();
}
return sb.toString();
}
return obj.toString();
}