Closed GoogleCodeExporter closed 9 years ago
OK I will try to apply the patch.
As for ValueGeometry, wouldn't it be even better to keep both the byte array
and the geometry?
Original comment by thomas.t...@gmail.com
on 14 Dec 2013 at 9:10
> As for ValueGeometry, wouldn't it be even better to keep both the byte array
and the geometry?
Sorry I saw you did that in the second patch.
However, this doesn't make sense:
public int hashCode() {
return toWKB().hashCode();
}
byte[].hashCode() is the hash code of the reference, not of the content. I will
use Arrays.hashCode(toWKB()) instead. Wouldn't it make sense to cache the hash
code (like it's done in java.lang.String)?
Original comment by thomas.t...@gmail.com
on 14 Dec 2013 at 9:16
> Hash code
Sorry, I saw you fixed that in the third patch. We could still cache the hash
code. I will try that.
Original comment by thomas.t...@gmail.com
on 14 Dec 2013 at 9:20
The patches are now applied in revision 5334 (including remembering the hash
code, formatting changes, and changelog entry).
Original comment by thomas.t...@gmail.com
on 14 Dec 2013 at 9:22
Original issue reported on code.google.com by
nico.de...@gmail.com
on 4 Dec 2013 at 8:08