Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 278441

Summary: Control's getData(String) method should not instantiate new Booleans
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: eclipse.felipe, ericwill, pinnamur
Version: 3.5Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Remy Suen CLA 2009-05-29 15:06:42 EDT
No point in creating new Boolean instances, Boolean.TRUE and Boolean.FALSE should be used instead.
Comment 1 Remy Suen CLA 2009-11-09 12:29:57 EST
Similar problem detected on the win32 version of Display.
Comment 2 Eric Williams CLA 2016-11-24 16:22:48 EST
This is still valid, though minor. Low hanging fruit for a beginner if anyone wants to work on it.
Comment 3 Alexander Kurtakov CLA 2017-01-05 15:39:05 EST
Eric, this looks like duplicate of 470568 . The way it was done in this bug is good enough IMHO.
Comment 4 Eric Williams CLA 2017-01-09 10:24:37 EST
(In reply to Alexander Kurtakov from comment #3)
> Eric, this looks like duplicate of 470568 . The way it was done in this bug
> is good enough IMHO.

Shall I mark this bug as a duplicate of bug 470568 then?
Comment 5 Eric Williams CLA 2019-02-14 15:44:02 EST

*** This bug has been marked as a duplicate of bug 470568 ***