- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for annotationType (0.09 sec)
-
android/guava/src/com/google/common/reflect/Parameter.java
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return getAnnotation(annotationType) != null; } @Override public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) { checkNotNull(annotationType); for (Annotation annotation : annotations) { if (annotationType.isInstance(annotation)) { return annotationType.cast(annotation); } } return null;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeTest.java
assertEquals("Annotation type should be CustomSize", CustomSize.class, customAnnotation.annotationType()); } // Test annotation with empty keys public void test_annotationWithEmptyKeys() { final CustomSize emptyKeysAnnotation = new CustomSize() { @Override public Class<? extends Annotation> annotationType() { return CustomSize.class; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/UriTypeTest.java
assertEquals("Annotation type should be UriType", UriType.class, customAnnotation.annotationType()); } // Test annotation with FILE protocol type public void test_annotationWithFileProtocolType() { final UriType fileAnnotation = new UriType() { @Override public Class<? extends Annotation> annotationType() { return UriType.class; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 21K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/AnnotationUtil.java
assertArgumentNotNull("annotation", annotation); final Map<String, Object> map = newHashMap(); final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(annotation.annotationType()); for (final String name : beanDesc.getMethodNames()) { final Object v = getProperty(beanDesc, annotation, name); if (v != null) { map.put(name, v); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java
} } private CustomSize createBasicAnnotation() { return new CustomSize() { @Override public Class<? extends Annotation> annotationType() { return CustomSize.class; } @Override public String message() { return "Size validation failed"; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
*/ private static TesterRequirements buildTesterRequirements(Annotation testerAnnotation) throws ConflictingRequirementsException { Class<? extends Annotation> annotationClass = testerAnnotation.annotationType(); Feature<?>[] presentFeatures; Feature<?>[] absentFeatures; try { presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
*/ private static TesterRequirements buildTesterRequirements(Annotation testerAnnotation) throws ConflictingRequirementsException { Class<? extends Annotation> annotationClass = testerAnnotation.annotationType(); Feature<?>[] presentFeatures; Feature<?>[] absentFeatures; try { presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
} private static boolean containsNullable(Annotation[] annotations) { for (Annotation annotation : annotations) { if (NULLABLE_ANNOTATION_SIMPLE_NAMES.contains(annotation.annotationType().getSimpleName())) { return true; } } return false; } private boolean isIgnored(Member member) { return member.isSynthetic()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/AndroidIncompatible.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.testing; 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.TYPE;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 15:54:11 UTC 2025 - 1.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/AndroidIncompatible.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.primitives; 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.TYPE;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 15:54:11 UTC 2025 - 1.6K bytes - Viewed (0)