Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332836 - Unnecessary creation of Character objects
Summary: Unnecessary creation of Character objects
Status: RESOLVED FIXED
Alias: None
Product: Gemini.DBaccess
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Juergen Kissner CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 05:51 EST by Juergen Kissner CLA
Modified: 2010-12-17 10:06 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Kissner CLA 2010-12-17 05:51:04 EST
org.eclipse.gemini.dbaccess.derby.AbstractDataSourceFactory creates unnecessary objects  by calling the constructor Character() instead of Character.valueOf()

AbstractDataSourceFactory.java contains:

   return  new Character(value.charAt(0));

Should be:
   return  Character.valueOf(value.charAt(0));
Comment 1 Juergen Kissner CLA 2010-12-17 10:06:21 EST
Fixed in rev 35.