Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6797535
Votes 0
Synopsis Add shared two argument static equals method to the platform
Category java:classes_util
Reported Against
Release Fixed 7(b75)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6582946 , 6889078 , 6889858 , 6891113
Submit Date 25-JAN-2009
Description
A common programming need is for a static two argument equals method that does that right thing for nulls; that is, if both arguments are null it returns true, if one argument is null it returns false, and if both arguments are nonnull, it calls a.equals(b).

This idiom is common enough that the platform should have a method to provide this functionality.
Posted Date : 2009-01-25 22:57:09.0
Work Around
N/A
Evaluation
A fine idea.
Posted Date : 2009-01-25 22:57:47.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang