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

code changes towards broader use of JDK5 features

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-beta3
    • Component/s: jdbc
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      the current code of OpenJPA can be enhanced by:
      1.) replacing Numbers.valueOf( int ) and Numbers.valueOf( long ) by their conunterparts in Integer and Long, as well as replacing new Integer/Byte/Short/Long/Character by their factory-methods
      2.) replace StringBuffer by StringBuilder, replace .append( "x" ) by .append( 'x' ) where possible
      3.) use more generics ( in Iterators, for example)

      attached is a patch which contains 1.) for the below openjpa-jdbc/..

        Attachments

        1. DvH090604a.diff
          171 kB
          dieter von holten
        2. DvH090711Jira1118b.diff
          156 kB
          dieter von holten
        3. OPENJPA-1118.diff.txt
          59 kB
          Michael Dick

          Issue Links

            Activity

              People

              • Assignee:
                mikedd Michael Dick
                Reporter:
                dvholten dieter von holten
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: