Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
index f884748556..cd59d80067 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
@@ -28,10 +28,12 @@ public id(id id) {
this.id = id != null ? id.id : 0;
}
+@Override
public int hashCode() {
return (int) this.id;
}
+@Override
public boolean equals(Object other) {
return (this.id == ((id)other).id);
}
@@ -43,6 +45,7 @@ public long /*int*/ objc_getClass() {
return OS.objc_getClass(name);
}
+@Override
public String toString() {
return getClass().getName() + "{" + id + "}";
}

Back to the top