Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Jongman2018-07-10 15:07:30 +0000
committerWim Jongman2018-07-10 15:07:30 +0000
commit00ea9fa9d25844390d99d6622f5b36661e6495e1 (patch)
tree86bd7d2d7a3581ae0ad950801383d833296703f4 /org.eclipse.tips.core
parent4717ca4ba5d08c710ca304e2e1985b9514ec66e8 (diff)
downloadeclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.tar.gz
eclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.tar.xz
eclipse.platform.ua-00ea9fa9d25844390d99d6622f5b36661e6495e1.zip
Diffstat (limited to 'org.eclipse.tips.core')
-rw-r--r--org.eclipse.tips.core/src/org/eclipse/tips/core/Tip.java13
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;
}

Back to the top