Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
f8f510d5
Commit
f8f510d5
authored
11 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
corresponding corrections of equals() and hashCode() in <programmlisting> elements
parent
97298ded
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/course.xml
+12
-18
12 additions, 18 deletions
Doc/course.xml
with
12 additions
and
18 deletions
Doc/course.xml
+
12
−
18
View file @
f8f510d5
...
...
@@ -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 f
pr 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 f
or
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 && 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 && other instanceof User) {
return <emphasis role="bold">getUid().equals(((User) other).getUid())</emphasis>; <co
linkends="implementEqualsByNaturalKey-2"
xml:id="implementEqualsByNaturalKey-2-co"/>
} else {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment