openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dieter von holten (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1118) code changes towards broader use of JDK5 features
Date Thu, 04 Jun 2009 14:59:07 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

dieter von holten updated OPENJPA-1118:
---------------------------------------

    Attachment: DvH090604a.diff

replaces Numbers.valueOf() by JRE-factory-methods for Byte, Short, Integer, Long, Character
replaces new BigInteger( 0 ) / BigDecimal(0) and 1 by references to constant global instances
removes imports obsoleted by this
trims some trailing blanks


> code changes towards broader use of JDK5 features
> -------------------------------------------------
>
>                 Key: OPENJPA-1118
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1118
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: jdbc
>    Affects Versions: 2.0.0
>            Reporter: dieter von holten
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: DvH090604a.diff
>
>
> 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/..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message