aboutsummaryrefslogtreecommitdiffstats
path: root/abi-check-plugin
diff options
context:
space:
mode:
authorIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-29 10:32:17 +0100
committerIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-29 10:32:17 +0100
commitf7bff439f50d456388d8abb0b3453c02002a53ec (patch)
tree73135b6d1751a9cd6bc8ff2dfb12e6b809552ce6 /abi-check-plugin
parent48c554881cdeafc0c6e474da7171f9238fef8e5f (diff)
Protected static members may be accessible.
Diffstat (limited to 'abi-check-plugin')
-rw-r--r--abi-check-plugin/src/main/java/com/yahoo/abicheck/collector/PublicSignatureCollector.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/abi-check-plugin/src/main/java/com/yahoo/abicheck/collector/PublicSignatureCollector.java b/abi-check-plugin/src/main/java/com/yahoo/abicheck/collector/PublicSignatureCollector.java
index b6506bb4622..1d931a3461b 100644
--- a/abi-check-plugin/src/main/java/com/yahoo/abicheck/collector/PublicSignatureCollector.java
+++ b/abi-check-plugin/src/main/java/com/yahoo/abicheck/collector/PublicSignatureCollector.java
@@ -91,10 +91,9 @@ public class PublicSignatureCollector extends ClassVisitor {
if (testBit(access, Opcodes.ACC_PUBLIC)) {
return true;
}
- // Protected non-static members are visible if the class is not final (can be called from
+ // Protected members are visible if the class is not final (can be accessed from
// extending classes)
- if (!testBit(access, Opcodes.ACC_STATIC) && testBit(access, Opcodes.ACC_PROTECTED) && !testBit(
- currentAccess, Opcodes.ACC_FINAL)) {
+ if (!testBit(access, Opcodes.ACC_PROTECTED) && !testBit(currentAccess, Opcodes.ACC_FINAL)) {
return true;
}
// Otherwise not visible