You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/04 21:38:23 UTC

[jira] [Resolved] (OWB-647) [PERF] Avoid unnecessary StringBuilder instances - improve checkNullInstance, checkScopeType, ... methods

     [ https://issues.apache.org/jira/browse/OWB-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-647.
-------------------------------

    Resolution: Fixed

looks good, txs!
                
> [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čí
>            Assignee: Martin Kočí
>            Priority: Trivial
>             Fix For: 1.1.4
>
>         Attachments: OWB-647.patch
>
>
> 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