- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for maybeViolation (0.09 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingChangesRule.java
@SuppressWarnings("unchecked") public Violation maybeViolation(final JApiCompatibility member) { if (!member.isBinaryCompatible()) { if ((member instanceof JApiClass) && (member.getCompatibilityChanges().isEmpty())) { // A member of the class breaks binary compatibility. // That will be handled when the member is passed to `maybeViolation`. return null; }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 3.1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NewIncubatingAPIRule.java
public class NewIncubatingAPIRule extends AbstractGradleViolationRule { public NewIncubatingAPIRule(Map<String, Object> params) { super(params); } @Override public Violation maybeViolation(final JApiCompatibility member) { if (member instanceof JApiMethod || member instanceof JApiField || member instanceof JApiClass) { if (!isIncubating((JApiHasAnnotations) member)) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 1.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy
super(params) final List<String> publicApiPatterns = (List<String>)params['publicApiPatterns']; this.publicApiPatterns = publicApiPatterns.collect { Pattern.compile(it) } } Violation maybeViolation(final JApiCompatibility member) { if (!(member instanceof JApiClass)) { return null } if (!changed(member)) { return null }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 2.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy
noViolation(rule) } def 'adding an #type interface can be reported'() { given: newBase.addInterface(interfaces[type]) when: Violation violation = rule.maybeViolation(apiClass) then: violation.humanExplanation.contains(result) where: type | result 'internal' | "\"${replaceAsInternal(InternalInterface.name)}\""
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingMissingRule.java
public class IncubatingMissingRule extends AbstractGradleViolationRule { public IncubatingMissingRule(Map<String, Object> params) { super(params); } @Override public Violation maybeViolation(final JApiCompatibility member) { if (member instanceof JApiMethod || member instanceof JApiField || member instanceof JApiClass || member instanceof JApiConstructor) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 1.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy
JApiClass apiClass = Stub(JApiClass) def setup() { instanceScopedPool.appendSystemPath() } void noViolation(def rule) { assert rule.maybeViolation(apiClass) == null } Map getInitializationParams() { return [acceptedApiChanges: [:], publicApiPatterns: ['gradlebuild[.]binarycompatibility[.]rules.[^.]+'],
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/KotlinModifiersBreakingChangeRule.groovy
@CompileStatic class KotlinModifiersBreakingChangeRule extends AbstractGradleViolationRule { KotlinModifiersBreakingChangeRule(Map<String, Object> params) { super(params) } @Override Violation maybeViolation(JApiCompatibility member) { if (isNewOrRemoved(member) || !(member instanceof JApiMethod)) { return null } JApiMethod method = (JApiMethod) member
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 2.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/SinceAnnotationMissingRule.java
public SinceAnnotationMissingRule(Map<String, Object> params) { super(params); } @Override public Violation maybeViolation(final JApiCompatibility member) { if (shouldSkipViolationCheckFor(member) || getRepository().isSince(getCurrentVersion(), member)) { return null; }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Sep 21 16:02:23 UTC 2023 - 2.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy
given: apiClass.oldClass >> Optional.of(classes['OldBase']) apiClass.newClass >> Optional.of(classes['NewBase']) when: Violation violation = rule.maybeViolation(apiClass) then: violation.humanExplanation.contains('SuperInternal.publicMethod()') !violation.humanExplanation.contains('SuperInternal.privateMethod()') }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 2.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Apr 13 10:04:28 UTC 2024 - 5.4K bytes - Viewed (0)