Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for if (0.29 sec)

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

        }
    
        Violation maybeViolation(final JApiCompatibility member) {
            if (!(member instanceof JApiClass)) {
                return null
            }
    
            if (!changed(member)) {
                return null
            }
    
            Optional<CtClass> oldClass = member.oldClass
            Optional<CtClass> newClass = member.newClass
            if (!oldClass.isPresent() || !newClass.isPresent()) {
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

            if (member instanceof JApiClass) {
                return isIncubatingClass((JApiClass) member)
            }
            if (member instanceof JApiMethod) {
                return isIncubatingOrOverrideMethod((JApiMethod) member)
            }
            if (member instanceof JApiField) {
                return isIncubatingField((JApiField) member)
            }
            if (member instanceof JApiConstructor) {
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        // with the sort used by AbstractAcceptedApiChangesMaintenanceTask.
                        result.acceptedApiChanges.sort((a, b) => { 
                            if ((a.type +'#' + a.member) > (b.type + '#' + b.member)) {
                                return 1; 
                            } else {
                                return -1;
                            }
                        });
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy

            // TODO: Implement this with the worker API
            workerLeaseService.runAsIsolatedTask({
                source.visit { FileVisitDetails fvd ->
                    if (fvd.isDirectory()) {
                        return
                    }
                    if (!fvd.getFile().getName().endsWith(".xml")) {
                        return
                    }
    
                    String newFileName = fvd.file.name.replaceAll('.xml$', '.html')
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 05 19:36:14 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                    if (!oldNullability && newNullability) {
                        errors << "From non-nullable to nullable breaking change"
                    } else if (oldNullability && !newNullability) {
                        warnings << "Nullability changed from nullable to non-nullable"
                    }
                } else if (oldNullability != newNullability) {
                    errors << "Nullability breaking change"
                }
    
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Sat Apr 13 10:04:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. .github/workflows/CheckBadMerge.groovy

     * e.g https://github.com/gradle/gradle/pull/25825
     *
     * This script is to check if there is any merge commit that brings changes from release branch to master.
     * Usage: groovy CheckBadMerge.groovy <commit1> <commit2> ...
     * If any "bad" merge commit is found, it will print the details and exit with non-zero code.
     */
    class CheckBadMerge {
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Dec 19 10:35:44 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            apiElement    | jApiTypeName
            'interface'   | 'jApiClassifier'
            'method'      | 'jApiMethod'
            'field'       | 'jApiField'
            'constructor' | 'jApiConstructor'
        }
    
        def "if a type is annotated with @Incubating a new #apiElement does not require it"() {
            given:
            JApiCompatibility jApiType = getProperty(jApiTypeName)
    
            when:
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleClasspath.groovy

        @InputArtifact
        abstract Provider<FileSystemLocation> getArtifact()
    
        @Override
        void transform(TransformOutputs outputs) {
            File artifactFile = artifact.get().asFile
            if (artifactFile.name == 'gradle-dependencies') {
                (artifactFile.listFiles() as List<File>).sort { it.name }.each {
                    outputs.file(it)
                }
            }
        }
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Jul 07 13:12:26 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRule.groovy

            newInterfaces.keySet().removeAll(oldInterfaces.keySet())
    
            if (newInterfaces.isEmpty()) {
                return null
            }
    
            List<String> changes = filterChangesToReport(newClass, newInterfaces)
            if (changes.isEmpty()) {
                return null
            }
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ExtractDslMetaDataTask.groovy

            Logging.getLogger(this.getClass()).lifecycle( "Parsed $counter classes in ${elapsedTime}")
        }
    
        def parse(File sourceFile, ClassMetaDataRepository<gradlebuild.docs.dsl.source.model.ClassMetaData> repository) {
            if (!sourceFile.name.endsWith('.java')) {
                throw new DocGenerationException("Parsing non-Java files is not supported: $sourceFile")
            }
            try {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top