Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 638 for impossible (0.05 sec)

  1. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        constructor.setAccessible(true); // accessibility check is too slow
        try {
          return constructor.newInstance();
        } catch (InstantiationException | IllegalAccessException impossible) {
          throw new AssertionError(impossible);
        } catch (InvocationTargetException e) {
          logger.log(Level.WARNING, "Exception while invoking default constructor.", e.getCause());
          return arbitraryConstantInstanceOrNull(type);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/html/HtmlEscapers.java

     *
     * <p>HTML escaping is particularly tricky: For example, <a
     * href="https://www.w3.org/TR/html4/types.html#h-6.2">some elements' text contents must not be HTML
     * escaped</a>. As a result, it is impossible to escape an HTML document correctly without
     * domain-specific knowledge beyond what {@code HtmlEscapers} provides. We strongly encourage the
     * use of HTML templating systems.
     *
     * @author Sven Mawson
     * @author David Beaumont
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * thought of as overkill; however, it's difficult to determine which proper subset of this massive
     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
     * <p>To use this class the concrete subclass must implement the {@link
     * IteratorTester#newTargetIterator()} method. This is because it's impossible to test an Iterator
     * without changing its state, so the tester needs a steady supply of fresh Iterators.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/ChecksumHashFunction.java

          if (UPDATE_BB != null) {
            try {
              UPDATE_BB.invokeExact(cs, bb);
            } catch (Throwable e) {
              throwIfUnchecked(e);
              // This should be impossible, since `update` has no `throws` clause.
              throw new UndeclaredThrowableException(e);
            }
            return true;
          } else {
            return false;
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:05:16 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/TempFileCreator.java

          // The JELLY_BEAN field doesn't exist because we're running on a version before Jelly Bean :)
          return new ThrowingCreator();
        } catch (ClassNotFoundException e) {
          // Should be impossible, but we want to return *something* so that class init succeeds.
          return new ThrowingCreator();
        } catch (IllegalAccessException e) {
          // ditto
          return new ThrowingCreator();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        boolean threadStarted = false;
        try {
          startFinalizer.invoke(null, FinalizableReference.class, queue, frqRef);
          threadStarted = true;
        } catch (IllegalAccessException impossible) {
          throw new AssertionError(impossible); // startFinalizer() is public
        } catch (Throwable t) {
          logger.log(
              Level.INFO,
              "Failed to start reference finalizer thread."
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

      @Override
      public final void run() {
        /*
         * Set runner thread before checking isDone(). If we were to check isDone() first, the task
         * might be cancelled before we set the runner thread. That would make it impossible to
         * interrupt, yet it will still run, since interruptTask will leave the runner value null,
         * allowing the CAS below to succeed.
         */
        Thread currentThread = Thread.currentThread();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * <p>Occasionally, an API will return a plain {@code Future} and it will be impossible to change
     * the return type. For this case, we provide a more expensive workaround in {@code
     * JdkFutureAdapters}. However, when possible, it is more efficient and reliable to create a {@code
     * ListenableFuture} directly.
     *
     * @author Sven Mawson
     * @author Nishant Thakkar
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    	ErrAdvanceTooFar   = errors.New("bufio.Scanner: SplitFunc returns advance count beyond input")
    	ErrBadReadCount    = errors.New("bufio.Scanner: Read returned impossible count")
    )
    
    const (
    	// MaxScanTokenSize is the maximum size used to buffer a token
    	// unless the user provides an explicit buffer with [Scanner.Buffer].
    	// The actual maximum token size may be smaller as the buffer
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * <p>Occasionally, an API will return a plain {@code Future} and it will be impossible to change
     * the return type. For this case, we provide a more expensive workaround in {@code
     * JdkFutureAdapters}. However, when possible, it is more efficient and reliable to create a {@code
     * ListenableFuture} directly.
     *
     * @author Sven Mawson
     * @author Nishant Thakkar
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top