Revert "Bug 535169: [Tips] Tips hashCode/equals should be final"
This reverts commit 4717ca4ba5d08c710ca304e2e1985b9514ec66e8.
Change-Id: Idfbe289ecd27f86ec2f80d9980f382dc98b3f0d7
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 bcdc1b9..ec887af 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 @@
}
/**
- * 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 @@
}
@Override
- public final boolean equals(Object obj) {
+ public boolean equals(Object obj) {
if (this == obj) {
return true;
}
diff --git a/org.eclipse.tips.ide/META-INF/MANIFEST.MF b/org.eclipse.tips.ide/META-INF/MANIFEST.MF
index 863b569..f60e67e 100644
--- a/org.eclipse.tips.ide/META-INF/MANIFEST.MF
+++ b/org.eclipse.tips.ide/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.tips.ide;singleton:=true
-Bundle-Version: 1.0.0.qualifier
+Bundle-Version: 0.1.100.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.ui;bundle-version="3.108.0",
org.eclipse.core.runtime;bundle-version="3.12.0",
diff --git a/org.eclipse.tips.ide/pom.xml b/org.eclipse.tips.ide/pom.xml
index 3db3be5..42fac55 100644
--- a/org.eclipse.tips.ide/pom.xml
+++ b/org.eclipse.tips.ide/pom.xml
@@ -20,6 +20,6 @@
</parent>
<groupId>org.eclipse.ui</groupId>
<artifactId>org.eclipse.tips.ide</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>0.1.100-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>