Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002138 [Resin] minor always 11-04-07 09:49 11-05-07 13:21
Reporter regor View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0002138: Use Integer.valueOf(int) instead of new Integer(int)
Description You should consider to use expressions like "Integer.valueOf(int)" instead of "new Integer(int)". The former returns Objects from an Object pool.

I saw this in Hessian's BasicDeserializer class. This is especially bad for Boolean and Byte Objects which fit entirely into the Object pool.

Cheers
-Roger
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
11-04-07 09:49 regor New Issue
11-05-07 13:21 ferg Assigned To  => ferg
11-05-07 13:21 ferg Status new => closed
11-05-07 13:21 ferg Resolution open => fixed
11-05-07 13:21 ferg Fixed in Version  => 3.1.4


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker