Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for oldClass (0.05 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

                return null
            }
    
            Optional<CtClass> oldClass = member.oldClass
            Optional<CtClass> newClass = member.newClass
            if (!oldClass.isPresent() || !newClass.isPresent()) {
                // breaking change would be reported
                return null
            }
    
            return checkSuperClassChanges(member, oldClass.get(), newClass.get())
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

            apiClass.compatibilityChanges >> [JApiCompatibilityChange.METHOD_REMOVED_IN_SUPERCLASS]
        }
    
        def "method removal can be reported if current class is first public class"() {
            given:
            apiClass.oldClass >> Optional.of(classes['OldBase'])
            apiClass.newClass >> Optional.of(classes['NewBase'])
    
            when:
            Violation violation = rule.maybeViolation(apiClass)
    
            then:
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

            return member.compatibilityChanges.contains(JApiCompatibilityChange.METHOD_REMOVED_IN_SUPERCLASS)
        }
    
        protected Violation checkSuperClassChanges(JApiClass c, CtClass oldClass, CtClass newClass) {
            Set<CtMethod> oldMethods = collectAllPublicApiMethods(oldClass.superclass)
            Set<CtMethod> newMethods = collectAllPublicApiMethods(newClass.superclass)
    
            oldMethods.removeAll(newMethods)
    
            if (oldMethods.isEmpty()) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRule.groovy

            return member.getChangeStatus() == JApiChangeStatus.MODIFIED
        }
    
        protected Violation checkSuperClassChanges(JApiClass c, CtClass oldClass, CtClass newClass) {
            Map<String, CtClass> oldInterfaces = collectImplementedInterfaces(oldClass)
            Map<String, CtClass> newInterfaces = collectImplementedInterfaces(newClass)
    
            newInterfaces.keySet().removeAll(oldInterfaces.keySet())
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingSuperclassChangeRule.groovy

            return member instanceof JApiClass && !member.superclass.binaryCompatible && !member.superclass.compatibilityChanges.empty
        }
    
        @Override
        protected Violation checkSuperClassChanges(JApiClass apiClass, CtClass oldClass, CtClass newClass) {
            return acceptOrReject(apiClass.superclass, Violation.notBinaryCompatible(apiClass.superclass))
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

            stablePublicInterface = instanceScopedPool.get(StablePublicInterface.name)
    
            apiClass.changeStatus >> JApiChangeStatus.MODIFIED
            apiClass.oldClass >> Optional.of(oldBase)
            apiClass.newClass >> Optional.of(newBase)
    
            internalInterface.name = replaceAsInternal(internalInterface.name)
    
            interfaces = ['internal': internalInterface,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top