- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for isAnnotationPresent (0.41 sec)
-
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
assertFalse(invokable.isStatic()); assertTrue(invokable.isAnnotationPresent(Tested.class)); } public void testAbstractMethod() throws Exception { Invokable<?, Object> invokable = A.method("abstractMethod"); assertTrue(invokable.isPackagePrivate()); assertTrue(invokable.isAbstract()); assertFalse(invokable.isFinal()); assertTrue(invokable.isAnnotationPresent(Tested.class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
assertFalse(invokable.isStatic()); assertTrue(invokable.isAnnotationPresent(Tested.class)); } public void testAbstractMethod() throws Exception { Invokable<?, Object> invokable = A.method("abstractMethod"); assertTrue(invokable.isPackagePrivate()); assertTrue(invokable.isAbstract()); assertFalse(invokable.isFinal()); assertTrue(invokable.isAnnotationPresent(Tested.class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
public void testGetField() { Field foo = Enums.getField(AnEnum.FOO); assertEquals("FOO", foo.getName()); assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); Field bar = Enums.getField(AnEnum.BAR); assertEquals("BAR", bar.getName()); assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class)); } @J2ktIncompatible @GwtIncompatible // Class.getClassLoader()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
} @SuppressLint("NewApi") private fun ExtensionContext.isFlaky(): Boolean { return (testMethod.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true) || (testClass.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true) } @Synchronized private fun logEvents() { // Will be ineffective if test overrides the listener
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
@Override public int compare(Method a, Method b) { return a.getName().compareTo(b.getName()); } }); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone(); tester.method = method; method.invoke(tester, new Object[] {null}); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Parameter.java
return type; } /** Returns the {@link Invokable} that declares this parameter. */ public Invokable<?, ?> getDeclaringInvokable() { return declaration; } @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return getAnnotation(annotationType) != null; } @Override @CheckForNull public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 16 15:12:31 UTC 2023 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
if (annotations == null) { annotations = new ArrayList<>(); for (Annotation a : classOrMethod.getDeclaredAnnotations()) { if (a.annotationType().isAnnotationPresent(TesterAnnotation.class)) { annotations.add(a); } } annotations = unmodifiableList(annotations); annotationCache.put(classOrMethod, annotations); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 12.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
@Override public int compare(Method a, Method b) { return a.getName().compareTo(b.getName()); } }); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone(); tester.method = method; method.invoke(tester, new Object[] {null}); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
if (annotations == null) { annotations = new ArrayList<>(); for (Annotation a : classOrMethod.getDeclaredAnnotations()) { if (a.annotationType().isAnnotationPresent(TesterAnnotation.class)) { annotations.add(a); } } annotations = unmodifiableList(annotations); annotationCache.put(classOrMethod, annotations); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 12.2K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Invokable.java
public static <T> Invokable<T, T> from(Constructor<T> constructor) { return new ConstructorInvokable<T>(constructor); } @Override public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { return accessibleObject.isAnnotationPresent(annotationClass); } @Override @CheckForNull public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 19.6K bytes - Viewed (0)