diff options
author | Wim Jongman | 2018-07-10 15:07:30 +0000 |
---|---|---|
committer | Wim Jongman | 2018-07-10 15:07:30 +0000 |
commit | 00ea9fa9d25844390d99d6622f5b36661e6495e1 (patch) | |
tree | 86bd7d2d7a3581ae0ad950801383d833296703f4 /org.eclipse.tips.core | |
parent | 4717ca4ba5d08c710ca304e2e1985b9514ec66e8 (diff) | |
download | eclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.tar.gz eclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.tar.xz eclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.zip |
Revert "Bug 535169: [Tips] Tips hashCode/equals should be final"Y20180712-0200I20180718-0130I20180717-2000I20180717-0320I20180716-2000I20180716-0715I20180715-2000I20180714-1500I20180713-2000I20180712-2000I20180711-2000
This reverts commit 4717ca4ba5d08c710ca304e2e1985b9514ec66e8.
Change-Id: Idfbe289ecd27f86ec2f80d9980f382dc98b3f0d7
Diffstat (limited to 'org.eclipse.tips.core')
-rw-r--r-- | org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java b/org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java index bcdc1b9f8..ec887af97 100644 --- a/org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java +++ b/org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java @@ -52,25 +52,20 @@ public abstract class Tip { } /** - * Return the publish date of the tip. The UI could decide to serve newer tips - * first. Note that this date is used to calculate the hash code of the Tip so - * it should return the same value for the same tip. + * Return the publish date of the tip. The UI could decide to server newer tips + * first. * * @return the date this tip was published which may not be null. */ public abstract Date getCreationDate(); /** - * Returns a meaningful short description of the tip. The description is used in - * calculation of the hash code so once it is set for the tip, it may not - * change. - * * @return the subject which may not be null. */ public abstract String getSubject(); @Override - public final int hashCode() { + public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); @@ -80,7 +75,7 @@ public abstract class Tip { } @Override - public final boolean equals(Object obj) { + public boolean equals(Object obj) { if (this == obj) { return true; } |