Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 117 for getClassB (0.15 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

        static final ClassOwnership JVM_BEHAVIOR = detectJvmBehavior();
    
        private static ClassOwnership detectJvmBehavior() {
          class LocalClass<T> {}
          Class<?> subclass = new LocalClass<String>() {}.getClass();
          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
              requireNonNull((ParameterizedType) subclass.getGenericSuperclass());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
      /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */
      public static class BadFuture extends SimpleForwardingListenableFuture<Integer> {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Strings.java

          String objectToString =
              o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o));
          // Logger is created inline with fixed name to avoid forcing Proguard to create another class.
          Logger.getLogger("com.google.common.base.Strings")
              .log(WARNING, "Exception during lenientFormat for " + objectToString, e);
          return "<" + objectToString + " threw " + e.getClass().getName() + ">";
        }
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

        assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Class.getClassLoader()
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
            "Method should be available.",
            subscriber.getClass().getMethod("throwExceptionOn", String.class),
            handler.context.getSubscriberMethod());
      }
    
      public void testSubscriberThrowsExceptionHandlerThrowsException() throws Exception {
        final EventBus eventBus =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
            "Method should be available.",
            subscriber.getClass().getMethod("throwExceptionOn", String.class),
            handler.context.getSubscriberMethod());
      }
    
      public void testSubscriberThrowsExceptionHandlerThrowsException() throws Exception {
        final EventBus eventBus =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        }
    
        assertEquals(expectedResult, actualResult);
        if (expectedRuntimeException != null) {
          assertNotNull(actualRuntimeException);
          assertEquals(expectedRuntimeException.getClass(), actualRuntimeException.getClass());
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      private static void checkSerialization(Predicate<? super @Nullable Integer> predicate) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          oos.flush();
          oos.close();
          ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
          T clone = (T) ois.readObject();
          assertSame(o.getClass(), clone.getClass());
          return clone;
        } catch (Throwable t) {
          threadUnexpectedException(t);
          return null;
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        abstract boolean isPermitted(Exception exception);
    
        void assertPermitted(Exception exception) {
          if (!isPermitted(exception)) {
            String message =
                "Exception "
                    + exception.getClass().getSimpleName()
                    + " was thrown; expected "
                    + getMessage();
            Helpers.fail(exception, message);
          }
        }
    
        private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        try {
          new NullPointerTester().testInstanceMethods(instance, visibility);
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("Should detect problem in " + instance.getClass().getSimpleName());
      }
    
      private static void shouldFail(Object instance) {
        shouldFail(instance, Visibility.PACKAGE);
        shouldFail(instance, Visibility.PROTECTED);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
Back to top