Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getDeclaredType (0.17 sec)

  1. platforms/extensibility/plugin-use/src/test/groovy/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistryTest.groovy

            1 * propertyMetadata.getPropertyType() >> SoftwareType.class
            1 * propertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class)
            1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType)
            1 * duplicatePropertyMetadata.getPropertyType() >> SoftwareType.class
            1 * duplicatePropertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:29 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/software/internal/SoftwareTypeAnnotationHandler.java

            propertyMetadata.getAnnotation(SoftwareType.class).ifPresent(softwareType -> {
                Class<?> publicType = softwareType.modelPublicType();
                Class<?> valueType = propertyMetadata.getDeclaredType().getRawType();
                if (publicType != Void.class && !publicType.isAssignableFrom(valueType)) {
                    validationContext.visitPropertyProblem(problem ->
                        problem
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 19:19:32 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistry.java

                });
            }
    
            private static Class<?> publicTypeOf(PropertyMetadata propertyMetadata, SoftwareType softwareType) {
                return softwareType.modelPublicType() == Void.class ? propertyMetadata.getDeclaredType().getRawType() : softwareType.modelPublicType();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:31 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top