MentaContainer

Compare Revisions

Ignore whitespace Rev 41 → Rev 40

/trunk/src/main/java/org/mentacontainer/impl/MentaComponent.java
194,9 → 194,9
return null;
}
public <T> T getInstance() {
public Object getInstance() {
if (singleton && singletonValue != null) return (T) singletonValue;
if (singleton && singletonValue != null) return singletonValue;
Object obj = null;
251,6 → 251,6
if (obj != null && singleton) singletonValue = obj;
return (T) obj;
return obj;
}
}