Commit 922f11b
committed
fix:
A method should only be considered "accessible" outside the class if:
* It is `public`
* It is `protected` and the class is NOT `final`
Previously, `protected` methods in `final` classes were incorrectly
considered to be accessible. This meant that changing one to `protected`
would incorrectly be reported as a BC break.
This commit fixes that logic.protected method in final class -> private is not a BC break1 parent 5a7bbb1 commit 922f11b
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments