Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isFinal (0.15 sec)

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

                def oldNullability = hasNullableAnnotation(oldField)
                def newNullability = hasNullableAnnotation(newField)
    
                if (Modifier.isFinal(oldField.modifiers) && Modifier.isFinal(newField.modifiers)) {
                    if (!oldNullability && newNullability) {
                        errors << "From non-nullable to nullable breaking change"
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Apr 13 10:04:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top