Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-647

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.1.4
    • 1.1.4
    • None
    • None
    • 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.

      Attachments

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

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: