Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,7 @@ void destroy() {
*/
@Override
public boolean equals(Object object) {
if (this == object) return true;
if (!(object instanceof Region region)) return false;
return handle == region.handle;
return super.equals(object);
}

/**
Expand Down Expand Up @@ -511,7 +509,7 @@ long regionToRects(long message, long rgn, long r, long path) {
*/
@Override
public int hashCode() {
return (int)handle;
return super.hashCode();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ void destroy() {
*/
@Override
public boolean equals(Object object) {
if (this == object) return true;
if (!(object instanceof Region)) return false;
Region region = (Region)object;
return handle == region.handle;
return super.equals(object);
}

/**
Expand Down Expand Up @@ -371,7 +368,7 @@ public static Region gtk_new(Device device, long handle) {
*/
@Override
public int hashCode() {
return (int)handle;
return super.hashCode();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ void destroyHandlesExcept(Set<Integer> zoomLevels) {
*/
@Override
public boolean equals (Object object) {
if (this == object) return true;
if (!(object instanceof Region)) return false;
Region rgn = (Region)object;
return getHandleForInitialZoom() == rgn.getHandleForInitialZoom();
return super.equals(object);
}

/**
Expand Down Expand Up @@ -295,7 +292,7 @@ Rectangle getBoundsInPixels() {
*/
@Override
public int hashCode () {
return (int)getHandleForInitialZoom();
return super.hashCode();
}

/**
Expand Down
Loading