Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 2,069 for Annotation (0.05 seconds)

  1. tests/test_response_model_as_return_annotation.py

    
    @app.get("/no_response_model-annotation-return_same_model")
    def no_response_model_annotation_return_same_model() -> User:
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-annotation-return_exact_dict")
    def no_response_model_annotation_return_exact_dict() -> User:
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/no_response_model-annotation-return_invalid_dict")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import com.google.errorprone.annotations.FormatMethod;
    import java.lang.annotation.Annotation;
    import java.lang.annotation.Inherited;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.reflect.Method;
    import java.util.Locale;
    import junit.framework.TestCase;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            final UriType annotation2 = field2.getAnnotation(UriType.class);
    
            assertNotNull(annotation1, "First annotation should exist");
            assertNotNull(annotation2, "Second annotation should exist");
    
            // Annotations with different protocol types should not be equal
            assertFalse("Annotations with different protocol types should not be equal", annotation1.equals(annotation2));
    
            // Test with same field
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

    package org.codelibs.fess.validation;
    
    import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
    import static java.lang.annotation.ElementType.CONSTRUCTOR;
    import static java.lang.annotation.ElementType.FIELD;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.PARAMETER;
    
    import java.lang.annotation.Annotation;
    import java.lang.annotation.Documented;
    import java.lang.annotation.ElementType;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

        }
    
        /**
         * Returns the elements of the annotation as a {@link Map} of names and values.
         *
         * @param annotation the annotation (must not be {@literal null})
         * @return a {@link Map} of annotation element names and values
         */
        public static Map<String, Object> getProperties(final Annotation annotation) {
            assertArgumentNotNull("annotation", annotation);
    
            final Map<String, Object> map = newHashMap();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. fastapi/_compat/shared.py

            or is_dataclass(annotation)
        )
    
    
    def field_annotation_is_complex(annotation: type[Any] | None) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            return any(field_annotation_is_complex(arg) for arg in get_args(annotation))
    
        if origin is Annotated:
            return field_annotation_is_complex(get_args(annotation)[0])
    
        return (
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/annotation/SecuredTest.java

     */
    package org.codelibs.fess.annotation;
    
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    
    import java.lang.annotation.Documented;
    import java.lang.annotation.ElementType;
    import java.lang.annotation.Inherited;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    import java.lang.reflect.Method;
    import java.util.Arrays;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  8. android/pom.xml

                  <annotation>com.google.common.hash.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.io.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.math.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.primitives.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.reflect.IgnoreJRERequirement</annotation>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 17 19:12:41 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            assertNotNull(target);
    
            java.lang.annotation.ElementType[] types = target.value();
            assertEquals(5, types.length);
        }
    
        // Test annotation retention policy
        @Test
        public void test_annotationRetention() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            final CustomSize annotation = createBasicAnnotation();
            validator.initialize(annotation);
    
            // Test null context - should return true for null value regardless of context
            assertTrue(validator.isValid(null, null));
        }
    
        @Test
        public void test_initialize_withValidParameters() {
            final CustomSize annotation = createBasicAnnotation();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top