Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getAnnotation (0.09 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. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

         */
        @Hoge(bbb = "3")
        @Test
        public void testGetProperties() throws Exception {
            final Method m = ClassUtil.getMethod(getClass(), "testGetProperties");
            final Annotation anno = m.getAnnotation(Hoge.class);
            final Map<String, Object> props = AnnotationUtil.getProperties(anno);
            assertThat((String) props.get("aaa"), is("123"));
            assertThat((String) props.get("bbb"), is("3"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
                    final Secured secured = executeMethod.getAnnotation(Secured.class);
                    if (secured != null && user.hasRoles(secured.value())) {
                        return;
                    }
                    throw new UserRoleLoginException(RootAction.class);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top