OpenJPA
  1. OpenJPA
  2. OPENJPA-1118

code changes towards broader use of JDK5 features

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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/..

      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

          dieter von holten created issue -
          dieter von holten made changes -
          Field Original Value New Value
          Attachment DvH090604a.diff [ 12409886 ]
          Pinaki Poddar made changes -
          Link This issue is related to OPENJPA-1050 [ OPENJPA-1050 ]
          Michael Dick made changes -
          Link This issue is related to OPENJPA-1171 [ OPENJPA-1171 ]
          dieter von holten made changes -
          Attachment DvH090711Jira1118b.diff [ 12413204 ]
          Michael Dick made changes -
          Assignee Michael Dick [ mikedd ]
          Michael Dick made changes -
          Attachment OPENJPA-1118.diff.txt [ 12438202 ]
          Michael Dick made changes -
          Link This issue is related to OPENJPA-1555 [ OPENJPA-1555 ]
          Michael Dick made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Donald Woods made changes -
          Fix Version/s 2.0.0-beta3 [ 12314857 ]
          Fix Version/s 2.0.0 [ 12314019 ]
          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development