Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for SetAnnotation (0.26 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/IdentityClassGenerator.java

                            }
    
                            @Nullable
                            @Override
                            public <S extends Annotation> S getAnnotation(Class<S> annotation) {
                                return constructor.getAnnotation(annotation);
                            }
    
                            @Override
                            public int getModifiers() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/InjectUtil.java

                    // If there is a single constructor, and that constructor is public or package private we select it.
                    return constructor;
                }
                if (constructor.getAnnotation(Inject.class) != null) {
                    // Otherwise, if there is a single constructor that is annotated with `@Inject`, we select it (short-circuit).
                    return constructor;
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Parameter.java

        return declaration;
      }
    
      @Override
      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
        return getAnnotation(annotationType) != null;
      }
    
      @Override
      @CheckForNull
      public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/InjectUtil.java

                if (constructor.getParameterTypes().length == 0 && isPublicOrPackageScoped(type.getGeneratedClass(), constructor)) {
                    return constructor;
                }
                if (constructor.getAnnotation(Inject.class) != null) {
                    return constructor;
                }
                if (constructor.getParameterTypes().length == 0) {
                    TreeFormatter formatter = new TreeFormatter();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/compatibility/CrossVersionTestInterceptor.groovy

            Closure ignoreVersions = getAnnotationClosure(target, IgnoreVersions, {})
            if (ignoreVersions(previousVersion)) {
                return false
            }
    
            def versionsAnnotation = target.getAnnotation(TargetVersions)
            if (versionsAnnotation == null) {
                return true
            }
    
            List<String> targetGradleVersions = versionsAnnotation.value()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top