Author: sebb Date: Sat Mar 3 19:40:05 2007 New Revision: 514349 URL: http://svn.apache.org/viewvc?view=rev&rev=514349 Log: Add hashCode() so Findbugs does not complain about derived classes TODO: still needs to be fixed ...
Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/testelement/AbstractTestElement.java Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/testelement/AbstractTestElement.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/testelement/AbstractTestElement.java?view=diff&rev=514349&r1=514348&r2=514349 ============================================================================== --- jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/testelement/AbstractTestElement.java (original) +++ jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/testelement/AbstractTestElement.java Sat Mar 3 19:40:05 2007 @@ -90,6 +90,11 @@ } } + // TODO temporary hack to avoid unnecessary bug reports for subclasses + + public int hashCode(){ + return System.identityHashCode(this); + } /* * URGENT: TODO - sort out equals and hashCode() - at present equal * instances can/will have different hashcodes - problem is, when a proper --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]