CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis
Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew
this is flagged as a violation :
public boolean equals(Object pParam)
if(pParam instanceof myClass)
if(compareTo(pParam) == 0
Missing inheritance check
The equals method should check that the parameter is an instanceof the same class or interface as this object.
1. Add an instanceof test.
- Posts: 1
- Joined: Tue Mar 22, 2011 7:40 am
Seems like a bug. Will include in our bugs list to fix sometime in the future. Thanks for your report.
- Posts: 243
- Joined: Tue Aug 22, 2006 7:49 am
Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test
Who is online
Users browsing this forum: No registered users and 1 guest