Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

FIX #130 Chaotic mouse rollover painting on JTable (java8) #131

Merged
merged 3 commits into from
Aug 4, 2014

Conversation

Apri1
Copy link

@Apri1 Apri1 commented Apr 23, 2014

compareTo should follow the contract
sgn(x.compareTo(y)) == -sgn(y.compareTo(x))

fix TableCellId hashCode (it was equal 0 for all values)

compareTo should follow the contract
sgn(x.compareTo(y)) == -sgn(y.compareTo(x))

fix TableCellId hashCode (it was equal 0 for all values)
@buildhive
Copy link

Insubstantial » insubstantial #32 SUCCESS
This pull request looks good
(what's this?)

remove call of Integer.compareTo(int,int) method (since java 1.7)
@buildhive
Copy link

Insubstantial » insubstantial #33 SUCCESS
This pull request looks good
(what's this?)

//noinspection ShiftOutOfRange
return (this.row ^ (this.row >>> 32))
& (this.column ^ (this.column >>> 32));
return (this.row ^ (this.row << 16))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest here to rewrite hashcode(), here hashcode to return 0, which means algorithm from hash to linear, which performance is low.

cmadsen added a commit that referenced this pull request Aug 4, 2014
FIX #130 Chaotic mouse rollover painting on JTable (java8)
@cmadsen cmadsen merged commit ad8f5a1 into Insubstantial:master Aug 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants