M
mark jason
hi
I am using colt matrix package from cern for some matrix manipulations
in my application.To provide a more convenient interface for client ,I
decided to override a matrix class (let's say BaseMatrix) as below
class MyMatrix extends cern.somecoltpackage.BaseMatrix {
public SomeValue easierInterface1(){
//return something...
}
public SomeOtherValue easierInterface2(){
//return somethingelse...
}
....
}
However,while running FindBugs over the code,I am getting this warning
MyMatrix.java:1 MyMatrix inherits equals and uses Object.hashCode()
I went through the source code of the superclass in cern package and
couldn't find any implementation of equals() or hashCode().What should
I do about this warning?Should I ignore it?Or should I implement these
methods?Please advise.
thanks,
mark.
I am using colt matrix package from cern for some matrix manipulations
in my application.To provide a more convenient interface for client ,I
decided to override a matrix class (let's say BaseMatrix) as below
class MyMatrix extends cern.somecoltpackage.BaseMatrix {
public SomeValue easierInterface1(){
//return something...
}
public SomeOtherValue easierInterface2(){
//return somethingelse...
}
....
}
However,while running FindBugs over the code,I am getting this warning
MyMatrix.java:1 MyMatrix inherits equals and uses Object.hashCode()
I went through the source code of the superclass in cern package and
couldn't find any implementation of equals() or hashCode().What should
I do about this warning?Should I ignore it?Or should I implement these
methods?Please advise.
thanks,
mark.