- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for setAnnotation (0.24 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTargetTest.groovy
and: // returns multiple properties with annotation present 1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType)) 1 * anotherPropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType)) and: def e = thrown(DefaultMultiCauseException) e.hasCause(InvalidUserDataException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:29 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/test/groovy/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistryTest.groovy
1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType) 1 * duplicatePropertyMetadata.getPropertyType() >> SoftwareType.class 1 * duplicatePropertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class) 1 * duplicatePropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType) 4 * softwareType.name() >> "test"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:29 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/software/internal/SoftwareTypeAnnotationHandler.java
propertyMetadata.getAnnotation(SoftwareType.class).ifPresent(softwareType -> visitor.visitSoftwareTypeProperty(propertyName, value, softwareType) ); } @Override public void validatePropertyMetadata(PropertyMetadata propertyMetadata, TypeValidationContext validationContext) { propertyMetadata.getAnnotation(SoftwareType.class).ifPresent(softwareType -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 10 19:19:32 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/CategoryFilter.java
final Set<Class<?>> categories = new HashSet<Class<?>>(); Category annotation = description.getAnnotation(Category.class); if (annotation != null) { categories.addAll(Arrays.asList(annotation.value())); } if (parent != null) { annotation = parent.getAnnotation(Category.class); if (annotation != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiExecution.groovy
} ToolingApiVersion toolingVersionAnnotation = testDetails.getAnnotation(ToolingApiVersion) Spec<GradleVersion> toolingVersionSpec = toVersionSpec(toolingVersionAnnotation) if (!toolingVersionSpec.isSatisfiedBy(this.toolingApiVersion)) { return false } TargetGradleVersion gradleVersionAnnotation = testDetails.getAnnotation(TargetGradleVersion)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java
return constructor.getGenericParameterTypes(); } @Nullable @Override public <S extends Annotation> S getAnnotation(Class<S> annotation) { return constructor.getAnnotation(annotation); } @Override public int getModifiers() { return constructor.getModifiers(); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 63K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForIsolatedProjectsRule.groovy
*/ class ToBeFixedForIsolatedProjectsRule implements TestRule { @Override Statement apply(@NotNull Statement base, @NotNull Description description) { def annotation = description.getAnnotation(ToBeFixedForIsolatedProjects.class) if (GradleContextualExecuter.isNotIsolatedProjects() || annotation == null) { return base }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:04:13 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/RelevantMethods.java
} add(configurers, method); } else if (method.getName().startsWith("create") || method.getName().startsWith("decorate")) { if (method.getAnnotation(Provides.class) == null) { throw new ServiceValidationException(String.format("Method %s.%s() must be annotated with @Provides.", type.getName(), method.getName())); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:53:25 UTC 2024 - 5.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/DefaultTaskClassInfoStore.java
private static TaskClassInfo createTaskClassInfo(Class<? extends Task> type) { boolean cacheable = type.isAnnotationPresent(CacheableTask.class); Optional<String> reasonNotToTrackState = Optional.ofNullable(type.getAnnotation(UntrackedTask.class)) .map(UntrackedTask::because); Map<String, Class<?>> processedMethods = new HashMap<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:47 UTC 2024 - 7.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForConfigurationCacheRule.groovy
*/ class ToBeFixedForConfigurationCacheRule implements TestRule { @Override Statement apply(Statement base, Description description) { def annotation = description.getAnnotation(ToBeFixedForConfigurationCache.class) if (GradleContextualExecuter.isNotConfigCache() || annotation == null) { return base }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:04:13 UTC 2024 - 2.1K bytes - Viewed (0)