Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2138 | minor | always | 11-04-07 09:49 | 11-05-07 13:21 | |
|
|||||
Reporter: | regor | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.4 | ||
|
|||||
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 |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |