Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getAnnotation (0.09 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

            .containsExactly(Tester.class.getAnnotation(Require.class));
      }
    
      public void testGetTesterAnnotations_method() throws Exception {
        class Tester {
          @Require
          @NotTesterAnnotation
          public void test() {}
        }
        Method method = Tester.class.getMethod("test");
    
        assertThat(getTesterAnnotations(method)).containsExactly(method.getAnnotation(Require.class));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

            .containsExactly(Tester.class.getAnnotation(Require.class));
      }
    
      public void testGetTesterAnnotations_method() throws Exception {
        class Tester {
          @Require
          @NotTesterAnnotation
          public void test() {}
        }
        Method method = Tester.class.getMethod("test");
    
        assertThat(getTesterAnnotations(method)).containsExactly(method.getAnnotation(Require.class));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Invokable.java

      }
    
      @Override
      @CheckForNull
      public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
        return accessibleObject.getAnnotation(annotationClass);
      }
    
      @Override
      public final Annotation[] getAnnotations() {
        return accessibleObject.getAnnotations();
      }
    
      @Override
      public final Annotation[] getDeclaredAnnotations() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/NullPointerTester.java

                || containsNullable(invokable.getAnnotatedReturnType().getAnnotations());
            // TODO(cpovirk): Should we also check isNullableTypeVariable?
          }
    
          @Override
          boolean isNullable(Parameter param) {
            return FROM_DECLARATION_ANNOTATIONS_ONLY.isNullable(param)
                || containsNullable(param.getAnnotatedType().getAnnotations())
                || isNullableTypeVariable(param.getAnnotatedType().getType());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                });
            });
        }
    
        private void findAnnotations(NodeWithAnnotations<?> node, AbstractLanguageElement currentElement) {
            for (AnnotationExpr child : node.getAnnotations()) {
                if (child instanceof SingleMemberAnnotationExpr && child.getNameAsString().endsWith("ReplacedBy")) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list.go

    	}
    	return retval
    }
    
    func extractRevisionFromPod(pod *corev1.Pod) string {
    	return describe.GetRevisionFromPodAnnotation(pod.GetAnnotations())
    }
    
    func injectionDisabled(pod *corev1.Pod) bool {
    	inject := pod.ObjectMeta.GetAnnotations()[annotation.SidecarInject.Name]
    	if lbl, labelPresent := pod.ObjectMeta.GetLabels()[label.SidecarInject.Name]; labelPresent {
    		inject = lbl
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

        protected void extractAnnotations(final PDDocument doc, final StringWriter writer) {
            for (final PDPage page : doc.getPages()) {
                try {
                    for (final PDAnnotation annotation : page.getAnnotations()) {
                        if (annotation instanceof final PDAnnotationFileAttachment annotationFileAttachment) {
                            final PDFileSpecification fileSpec = annotationFileAttachment.getFile();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        FROM_DECLARATION_ANNOTATIONS_ONLY {
          @Override
          boolean isNullable(Invokable<?, ?> invokable) {
            return containsNullable(invokable.getAnnotations());
          }
    
          @Override
          boolean isNullable(Parameter param) {
            return containsNullable(param.getAnnotations());
          }
        };
    
        abstract boolean isNullable(Invokable<?, ?> invokable);
    
        abstract boolean isNullable(Parameter param);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. istioctl/pkg/validate/validate.go

    			Name:              un.GetName(),
    			Namespace:         un.GetNamespace(),
    			Domain:            domain,
    			Labels:            un.GetLabels(),
    			Annotations:       un.GetAnnotations(),
    			ResourceVersion:   un.GetResourceVersion(),
    			CreationTimestamp: un.GetCreationTimestamp().Time,
    		},
    		Spec: data,
    	}, nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 22:27:47 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        ImmutableList<Parameter> parameters = delegate.getParameters();
        assertEquals(1, parameters.size());
        assertEquals(new TypeToken<Iterable<String>>() {}, parameters.get(0).getType());
        assertThat(parameters.get(0).getAnnotations()).isEmpty();
        new EqualsTester().addEqualityGroup(parameters.get(0)).testEquals();
      }
    
      public void testInstanceMethod_call() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top