OpenWebBeans
  1. OpenWebBeans
  2. OWB-647

[PERF] Avoid unnecessary StringBuilder instances - improve checkNullInstance, checkScopeType, ... methods

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.1.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      OWB trunk

      Description

      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.

      1. OWB-647.patch
        13 kB
        Martin Kočí

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Martin Kočí
            Reporter:
            Martin Kočí
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development