This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 49697 - Do not use 'new Boolean(val)' w/o reason
Summary: Do not use 'new Boolean(val)' w/o reason
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-09-29 15:39 UTC by _ rkubacki
Modified: 2004-10-02 18:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-09-29 15:39:14 UTC
most of usages of new Boolean() can be replaced
with simpler Boolean.valueOf that reuses either
Boolean.TRUE or Boolean.FALSE and does not need to
create new object on heap.
Comment 1 Richard Gregor 2004-09-30 13:10:10 UTC
fixed.

Checking in CommandInvocationHandler.java;
/cvs/vcscore/src/org/netbeans/spi/vcs/commands/CommandInvocationHandler.java,v
 <--  CommandInvocationHandler.java
new revision: 1.6; previous revision: 1.5
done
Comment 2 _ rkubacki 2004-09-30 14:37:21 UTC
thanks, perhaps you missed
vcscore/src/org/netbeans/modules/vcscore/cmdline/UserCommand.java
Comment 3 Martin Entlicher 2004-10-02 18:23:24 UTC
This is in a commented area.