- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for isAnnotationPresent (3.38 sec)
-
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 30.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
} @SuppressLint("NewApi") private fun ExtensionContext.isFlaky(): Boolean = (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 synchronized(clientEventsList) {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.8K 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 private URL[] getClassPathUrls() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/https/HandlerTest.java
class DeprecationTests { @Test @DisplayName("Handler class should be deprecated") void testDeprecatedAnnotation() { // Then assertTrue(Handler.class.isAnnotationPresent(Deprecated.class)); } } @Nested @DisplayName("Integration Tests") class IntegrationTests { @Test @DisplayName("Should support NTLM over HTTPS")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
android/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 public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 4.2K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 25 23:29:58 UTC 2025 - 6.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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 25 23:29:58 UTC 2025 - 6.2K bytes - Viewed (0) -
android/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 public final <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationClass) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.4K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
Map<MethodIdentifier, Method> identifiers = new HashMap<>(); for (Class<?> supertype : supertypes) { for (Method method : supertype.getDeclaredMethods()) { if (method.isAnnotationPresent(Subscribe.class) && !method.isSynthetic()) { // TODO(cgdecker): Should check for a generic parameter type and error out Class<?>[] parameterTypes = method.getParameterTypes(); checkArgument(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
static { ImmutableMap.Builder<Class<?>, Method> builder = ImmutableMap.builder(); for (Method method : FreshValueGenerator.class.getDeclaredMethods()) { if (method.isAnnotationPresent(Generates.class)) { builder.put(method.getReturnType(), method); } } GENERATORS = builder.buildOrThrow(); } private static final ImmutableMap<Class<?>, Method> EMPTY_GENERATORS;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.7K bytes - Viewed (0)