MCPcopy Index your code
hub / github.com/apache/groovy / compatibleModifiers

Method compatibleModifiers

src/main/java/groovy/lang/MetaMethod.java:218–221  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

isSameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected