aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/EqualsAndHashCodeExample_post.jpage
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-03-26 21:11:30 +0100
committerRoel Spilker <r.spilker@gmail.com>2014-03-26 21:11:30 +0100
commit4d24542dac058fcd7c341f9d17c4e8170a8d83a2 (patch)
tree945083ad989cb2abfb84f02ed88bc8b21ef87827 /usage_examples/EqualsAndHashCodeExample_post.jpage
parentdb71f39c271f1f8124fac96daa68d8b012fbf390 (diff)
downloadlombok-4d24542dac058fcd7c341f9d17c4e8170a8d83a2.tar.gz
lombok-4d24542dac058fcd7c341f9d17c4e8170a8d83a2.tar.bz2
lombok-4d24542dac058fcd7c341f9d17c4e8170a8d83a2.zip
[i660] canEqual is now protected instead of public.
Also fixed the total lack of canEqual in the usage examples.
Diffstat (limited to 'usage_examples/EqualsAndHashCodeExample_post.jpage')
-rw-r--r--usage_examples/EqualsAndHashCodeExample_post.jpage4
1 files changed, 2 insertions, 2 deletions
diff --git a/usage_examples/EqualsAndHashCodeExample_post.jpage b/usage_examples/EqualsAndHashCodeExample_post.jpage
index aa6a44ba..f58e045b 100644
--- a/usage_examples/EqualsAndHashCodeExample_post.jpage
+++ b/usage_examples/EqualsAndHashCodeExample_post.jpage
@@ -33,7 +33,7 @@ public class EqualsAndHashCodeExample {
return result;
}
- public boolean canEqual(Object other) {
+ protected boolean canEqual(Object other) {
return other instanceof EqualsAndHashCodeExample;
}
@@ -65,7 +65,7 @@ public class EqualsAndHashCodeExample {
return result;
}
- public boolean canEqual(Object other) {
+ protected boolean canEqual(Object other) {
return other instanceof Square;
}
}