Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getAnnotation (0.12 sec)

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

        assertNotNull(
            rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass),
            annotationClass.getAnnotation(TesterAnnotation.class));
        final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class);
        assertNotNull(
            rootLocaleFormat("%s must have a @Retention annotation.", annotationClass),
            retentionPolicy);
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        assertNotNull(
            rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass),
            annotationClass.getAnnotation(TesterAnnotation.class));
        final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class);
        assertNotNull(
            rootLocaleFormat("%s must have a @Retention annotation.", annotationClass),
            retentionPolicy);
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. 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)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

                    if (methodDesc != null) {
                        final Method method = methodDesc.getMethod();
                        final PreDestroy postConstruct = method.getAnnotation(PreDestroy.class);
                        if (postConstruct != null) {
                            MethodUtil.invoke(method, instance);
                        }
                    }
                }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. 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)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

            getScopeState().seed(clazz, value::get);
        }
    
        public <T> Provider<T> scope(final Key<T> key, Provider<T> unscoped) {
            Object qualifier = key.getAnnotation() instanceof Named n ? n.value() : key.getAnnotation();
            org.apache.maven.di.Key<T> k =
                    org.apache.maven.di.Key.ofType(key.getTypeLiteral().getType(), qualifier);
            return scope(k, unscoped::get)::get;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

                    extraInt = annotation.getMemberValue("xi")?.intValue ?: 0
                )
            }
    
        private
        inline fun <reified T : Any> CtClass.ctAnnotation(): Annotation? =
            getAnnotation(T::class.java)
                ?.takeIf { Proxy.isProxyClass(it::class.java) }
                ?.let { Proxy.getInvocationHandler(it) as? AnnotationImpl }
                ?.annotation
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    func PodRedirectionActive(pod *corev1.Pod) bool {
    	return pod.GetAnnotations()[annotation.AmbientRedirection.Name] == constants.AmbientRedirectionEnabled
    }
    
    func podHasSidecar(pod *corev1.Pod) bool {
    	if _, f := pod.GetAnnotations()[annotation.SidecarStatus.Name]; f {
    		return true
    	}
    	return false
    }
    
    func IsZtunnelPod(systemNs string, pod *corev1.Pod) bool {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. istioctl/pkg/util/ambient/util.go

    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    func InAmbient(obj metav1.Object) bool {
    	if obj == nil {
    		return false
    	}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    		return t.GetAnnotations()[annotation.AmbientRedirection.Name] == constants.AmbientRedirectionEnabled
    	case *corev1.Namespace:
    		if t.GetLabels()["istio-injection"] == "enabled" {
    			return false
    		}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. 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)
Back to top