Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2205

Performance - Method invokes inefficient Number constructor; use static valueOf instead

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Enhance
    • Labels:
      None

      Description

      We use Sonar and all of our enhanced classes cause this "critical" bug to come up. I believe it's found via FindBugs.

      The pcCopyKeyFieldsFromObjectId() method appears to be the offender here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jwcarman James Carman
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: