Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for approach (0.04 sec)

  1. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        this.remainingField = remainingFutures;
      }
    
      final Set<Throwable> getOrInitSeenExceptions() {
        /*
         * The initialization of seenExceptionsField has to be more complicated than we'd like. The
         * simple approach would be for each caller CAS it from null to a Set populated with its
         * exception. But there's another race: If the first thread fails with an exception and a second
         * thread immediately fails with the same exception:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingMap.java

       * #remove} to forward to this implementation.
       *
       * <p>Alternately, you may wish to override {@link #remove} with {@code keySet().remove}, assuming
       * that approach would not lead to an infinite loop.
       *
       * @since 7.0
       */
      protected @Nullable V standardRemove(@Nullable Object key) {
        Iterator<Entry<K, V>> entryIterator = entrySet().iterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLongs.java

              quotient = divide(x, radix);
            }
            long rem = x - quotient * radix;
            buf[--i] = Character.forDigit((int) rem, radix);
            x = quotient;
            // Simple modulo/division approach
            while (x > 0) {
              buf[--i] = Character.forDigit((int) (x % radix), radix);
              x /= radix;
            }
          }
          // Generate string
          return new String(buf, i, buf.length - i);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

               * block: https://github.com/google/truth/issues/333#issuecomment-765652454
               *
               * Also, it's nice that this approach should let us catch *only* ClassNotFoundException
               * instead of having to catch more broadly (potentially even including, say, a
               * StackOverflowError).
               */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  5. guava-gwt/pom.xml

                like to get an error. Currently we do, but if we add the extra <inherits> lines, we
                won't.
    
                I have one idea for a better approach, but it's painful, and I haven't tested it: We
                could postprocess Collect.gwt.xml to add <skip> lines for all the files that should be
                covered by testModule.gwt.xml. Maybe I'll try it someday.
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeRangeSet.java

              ubToAdd = rangeBelowLb.upperBound;
              /*
               * TODO(cpovirk): can we just "return;" here? Or, can we remove this if() entirely? If
               * not, add tests to demonstrate the problem with each approach
               */
            }
            lbToAdd = rangeBelowLb.lowerBound;
          }
        }
    
        Entry<Cut<C>, Range<C>> entryBelowUb = rangesByLowerBound.floorEntry(ubToAdd);
        if (entryBelowUb != null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Predicates.java

       * future changes to it will alter the behavior of the predicate.
       *
       * <p>This method can technically accept any {@code Collection<?>}, but using a typed collection
       * helps prevent bugs. This approach doesn't block any potential users since it is always possible
       * to use {@code Predicates.<Object>in()}.
       *
       * <p>You may prefer to use a method reference (e.g., {@code target::contains}) instead of this
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * the query result cursor will both be closed, even if the operation is cancelled or fails.
     *
     * <p>Note that if you don't call {@code closeAsync()}, the captured objects will not be closed. The
     * automatic-closing approach described above is safer.
     *
     * @param <V> the type of the value of this step
     * @since 30.0
     */
    // TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * the query result cursor will both be closed, even if the operation is cancelled or fails.
     *
     * <p>Note that if you don't call {@code closeAsync()}, the captured objects will not be closed. The
     * automatic-closing approach described above is safer.
     *
     * @param <V> the type of the value of this step
     * @since 30.0
     */
    // TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

       * Confirm that we don't send the Proxy-Authorization header from the request to the proxy server.
       * We used to have that behavior but it is problematic because unrelated requests end up sharing
       * credentials. Worse, that approach leaks proxy credentials to the origin server.
       */
      @Test
      fun noPreemptiveProxyAuthorization() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top