Skip to content
Snippets Groups Projects
Commit f8f510d5 authored by Goik Martin's avatar Goik Martin
Browse files

corresponding corrections of equals() and hashCode() in <programmlisting> elements

parent 97298ded
No related branches found
No related tags found
No related merge requests found
......@@ -15775,10 +15775,10 @@ Namespace '<emphasis role="bold">http://www.w3.org/2000/svg</emphasis>' contains
Tools</glossterm>
 
<glossdef>
<para>Eclipse update site
http://tapestrytools.googlecode.com/svn/TapestryTools. In favour
of Eclipse marketplace installation which may fail fpr onknown
reason.</para>
<para>Eclipse update site <link
xlink:href="http://tapestrytools.googlecode.com/svn/TapestryTools">http://tapestrytools.googlecode.com/svn/TapestryTools</link>.
In favour of Eclipse marketplace installation which may fail for
unknown reason.</para>
</glossdef>
</glossentry>
 
......@@ -15786,8 +15786,8 @@ Namespace '<emphasis role="bold">http://www.w3.org/2000/svg</emphasis>' contains
<glossterm>Eclipse jetty plugin</glossterm>
 
<glossdef>
<para>Eclipse update site
http://run-jetty-run.googlecode.com/svn/trunk/updatesite.</para>
<para>Eclipse update site <link
xlink:href="http://run-jetty-run.googlecode.com/svn/trunk/updatesite">http://run-jetty-run.googlecode.com/svn/trunk/updatesite</link>.</para>
</glossdef>
</glossentry>
</glosslist>
......@@ -18210,12 +18210,9 @@ public class User {
if (this == other) <co linkends="equalByPrimaryKey-1"
xml:id="equalByPrimaryKey-1-co"/>{
return true;
} else if (id == null) {
return false;
} else if (other instanceof User) {
final User that = (User) other;
return this.id.equals(that.getId()) <co linkends="equalByPrimaryKey-2"
xml:id="equalByPrimaryKey-2-co"/>;
} else if (null != other &amp;&amp; other instanceof User) {
return getId().equals(((User) other).getId()) <co
linkends="equalByPrimaryKey-2" xml:id="equalByPrimaryKey-2-co"/>;
} else {
return false;
}
......@@ -18225,7 +18222,7 @@ public class User {
if (null == id) {
return System.identityHashCode(this);
} else {
return id.hashCode();
return getId().hashCode();
}
}
}</programlisting>
......@@ -18371,11 +18368,8 @@ public class User {
public boolean equals(Object other) {
if (this == other) {
return true;
} else if (getUid() == null) {
return false;
} else if (other instanceof User) {
final User that = (User) other;
return <emphasis role="bold">this.getUid().equals( that.getUid() )</emphasis>; <co
} else if (null != other &amp;&amp; other instanceof User) {
return <emphasis role="bold">getUid().equals(((User) other).getUid())</emphasis>; <co
linkends="implementEqualsByNaturalKey-2"
xml:id="implementEqualsByNaturalKey-2-co"/>
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment