[
http://jira.codehaus.org/browse/MECLIPSE-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlos Sanchez closed MECLIPSE-237.
-----------------------------------
Assignee: Carlos Sanchez
Resolution: Fixed
Fix Version/s: 2.4
> unsafe EclipseSourceDir.equals() method
> ---------------------------------------
>
> Key: MECLIPSE-237
> URL: http://jira.codehaus.org/browse/MECLIPSE-237
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Klaus Brunner
> Assigned To: Carlos Sanchez
> Priority: Trivial
> Fix For: 2.4
>
>
> EclipseSourceDir.equals(Object o) does not check the passed object for null
> or incompatible class, which may cause NPEs and ClassCastExceptions.
> Fix suggestion:
> public boolean equals( Object obj )
> {
> return (obj != null) && (obj instanceof EclipseSourceDir) &&
> this.path.equals( ( (EclipseSourceDir) obj ).path );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira