From 4d24542dac058fcd7c341f9d17c4e8170a8d83a2 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 26 Mar 2014 21:11:30 +0100 Subject: [i660] canEqual is now protected instead of public. Also fixed the total lack of canEqual in the usage examples. --- .../transform/resource/before/EqualsAndHashCodeWithExistingMethods.java | 2 +- .../resource/before/EqualsAndHashCodeWithSomeExistingMethods.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java b/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java index be90d871..e21b82d9 100644 --- a/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java +++ b/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java @@ -20,7 +20,7 @@ final class EqualsAndHashCodeWithExistingMethods2 { final class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithExistingMethods { int x; - public boolean canEqual(Object other) { + private boolean canEqual(Object other) { return true; } } \ No newline at end of file diff --git a/test/transform/resource/before/EqualsAndHashCodeWithSomeExistingMethods.java b/test/transform/resource/before/EqualsAndHashCodeWithSomeExistingMethods.java index 784e3b3f..debe75b9 100644 --- a/test/transform/resource/before/EqualsAndHashCodeWithSomeExistingMethods.java +++ b/test/transform/resource/before/EqualsAndHashCodeWithSomeExistingMethods.java @@ -18,7 +18,7 @@ class EqualsAndHashCodeWithSomeExistingMethods { class EqualsAndHashCodeWithSomeExistingMethods2 { int x; - public boolean canEqual(Object other) { + protected boolean canEqual(Object other) { return false; } } -- cgit