Checks the compatibility between two modifier masks. Checks that they are equal in regard to access and static modifier. @return true if the modifiers are compatible
(int modifiersA, int modifiersB)
| 216 | * @return true if the modifiers are compatible |
| 217 | */ |
| 218 | private static boolean compatibleModifiers(int modifiersA, int modifiersB) { |
| 219 | int mask = Modifier.PRIVATE | Modifier.PROTECTED | Modifier.PUBLIC | Modifier.STATIC; |
| 220 | return (modifiersA & mask) == (modifiersB & mask); |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Returns whether this object is cacheable. |