[PERF] Avoid unnecessary StringBuilder instances - improve checkNullInstance,
checkScopeType, ... methods
---------------------------------------------------------------------------------------------------------
Key: OWB-647
URL: https://issues.apache.org/jira/browse/OWB-647
Project: OpenWebBeans
Issue Type: Improvement
Affects Versions: 1.1.4
Environment: OWB trunk
Reporter: Martin Kočí
Priority: Trivial
methods like
org.apache.webbeans.component.ProducerMethodBean.checkNullInstance(Object) or
org.apache.webbeans.component.ProducerMethodBean.checkScopeType() create
StringBuilder instance in every invocation, but that String is useful only in a
buggy application
Improve check* method with support of {0} {1} placeholders (like
java.util.logging has) or/and combine those checks with production/development
project stage check.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira