Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for GetAnnotations (0.24 sec)

  1. 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());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  2. 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()[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    	case *corev1.Namespace:
    		if t.GetLabels()["istio-injection"] == "enabled" {
    			return false
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Parameter.java

          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
      }
    
      @Override
      public Annotation[] getAnnotations() {
        return getDeclaredAnnotations();
      }
    
      /**
       * @since 18.0
       */
      @Override
      public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. 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
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. cni/pkg/util/podutil.go

    		// Pod explicitly asked to not have redirection enabled
    		return false
    	}
    	return true
    }
    
    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 {
    	return pod.Namespace == systemNs && pod.GetLabels()["app"] == "ztunnel"
    }
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

        }
    
        private Class<?>[] getInterfaces(Class<?> superType) {
            if (superType.isInterface()) {
                return new Class<?>[] {superType};
            } else {
                for (Annotation a : superType.getAnnotations()) {
                    Class<? extends Annotation> annotationType = a.annotationType();
                    if ("org.eclipse.sisu.Typed".equals(annotationType.getName())
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:52:20 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. 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")) {
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Sep 21 13:27:02 GMT 2023
    - 11.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/Invokable.java

      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() {
        return accessibleObject.getDeclaredAnnotations();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. 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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
  10. 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
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top