Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newClass (0.08 sec)

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

            }
    
            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())
        }
    
        protected abstract boolean changed(JApiCompatibility member)
    
    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

        }
    
        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:
            violation.humanExplanation.contains('SuperInternal.publicMethod()')
    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/IncubatingInternalInterfaceAddedRule.groovy

        }
    
        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())
    
            if (newInterfaces.isEmpty()) {
                return null
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

        }
    
        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()) {
                return null
            }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. 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,
                          'incubating': incubatingInterface]
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/JApiCmpExtensions.kt

            is JApiBehavior -> this.getjApiClass()
            else -> error("Unsupported japicmp member type '${this::class}'")
        }
    
    
    internal
    val JApiClass.isKotlin: Boolean
        get() = newClass.orNull()?.isKotlin ?: false
    
    
    internal
    val JApiClass.simpleName: String
        get() = fullyQualifiedName.substringAfterLast(".")
    
    
    internal
    val JApiClass.packagePath: String
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingSuperclassChangeRule.groovy

        }
    
        @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)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt

        private
        val JApiClass.kotlinSourceFilePath: String
            get() = "$packagePath/$bytecodeSourceFilename"
    
        private
        val JApiClass.bytecodeSourceFilename: String
            get() = newClass.orNull()?.classFile?.getAttribute("SourceFile")?.let { it as? SourceFileAttribute }?.fileName
                ?: error("Bytecode for $fullyQualifiedName is missing the 'SourceFile' attribute")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

    
    private
    val propertySetterNameRegex = "^set[A-Z].*$".toRegex()
    
    
    private
    val JApiCompatibility.newCtMember: CtClassOrCtMember
        get() = when (this) {
            is JApiClass -> newClass.get()
            is JApiConstructor -> newConstructor.get()
            is JApiField -> newFieldOptional.get()
            is JApiMethod -> newMethod.get()
            else -> error("Unsupported japicmp member type '${this::class}'")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 04 08:05:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. tests/scanner_valuer_test.go

    		t.Errorf("Should failed to update data with invalid data")
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("newpass")).Error; err != nil {
    		t.Errorf("Should got no error update data with valid data, but got %v", err)
    	}
    
    	AssertEqual(t, data.Password, EncryptedData("newpass"))
    }
    
    type ScannerValuerStruct struct {
    	gorm.Model
    	Name             sql.NullString
    	Gender           *sql.NullString
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top