mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 02:25:27 +00:00
[i660] canEqual is now protected instead of public.
Also fixed the total lack of canEqual in the usage examples.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user