We've now changed all values that were ints or doubles in previous
versions to Integer or Double. And of course, a method that returns an
int also takes an Integer object if compiled with the latest Java
compiler. However, it would be better to write
public int getMyValue() {
return isSetMyValue() ? myValue.intValue() : 0;
}
I mean, *.intValue() is important because the method does not return an
Integer object but an int value. The same holds true for Double
objects/double values.
If I see things like this, I'll try to change it but I'd like to point
out that it is better to use this method.
Cheers
Andreas
--
Dipl.-Bioinform. Andreas Dräger
Eberhard Karls University Tübingen
Center for Bioinformatics (ZBIT)
Sand 1
72076 Tübingen
Germany