Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 6,596 for _return (0.07 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

            idleAtNs = idleAtNanos,
          )
        result.withLock { pool.put(result) }
        return result
      }
    
      fun newConnectionPool(
        taskRunner: TaskRunner = this.taskRunner,
        maxIdleConnections: Int = Int.MAX_VALUE,
        routePlanner: RoutePlanner? = null,
      ): RealConnectionPool {
        return RealConnectionPool(
          taskRunner = taskRunner,
          maxIdleConnections = maxIdleConnections,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. cmd/erasure-healing.go

    			if err != nil {
    				return err
    			}
    			if len(entries) > 0 {
    				return errVolumeNotEmpty
    			}
    			return nil
    		}, index)
    	}
    
    	return g.Wait()
    }
    
    func isAllVolumeNotFound(errs []error) bool {
    	return countErrs(errs, errVolumeNotFound) == len(errs)
    }
    
    // isAllNotFound will return if any element of the error slice is not
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
        } catch (UnsupportedOperationException ok) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_0() {
        int oldCount = getMultiset().count(e0());
        assertEquals(
            "multiset.remove(E, 0) didn't return the old count",
            oldCount,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        if (defaultValue != null) {
          return defaultValue;
        }
        Class<? extends T> implementation = getImplementation(type);
        if (implementation != null) {
          return get(implementation);
        }
        if (type == Stream.class) {
          return type.cast(Stream.empty());
        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

      @Override
      public SampleElements<Object> samples() {
        return new Colliders();
      }
    
      @Override
      public Object[] createArray(int length) {
        return new Object[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
      public List<Object> order(List<Object> insertionOrder) {
        return insertionOrder;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt

            break
          }
          val codePoint = prefix.readUtf8CodePoint()
          if (Character.isISOControl(codePoint) && !Character.isWhitespace(codePoint)) {
            return false
          }
        }
        return true
      } catch (_: EOFException) {
        return false // Truncated UTF-8 sequence.
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 07 16:05:34 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getListIteratorFullyModifiableMethod() {
        return getMethod(ListListIteratorTester.class, "testListIterator_fullyModifiable");
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testListIterator_unmodifiable()} so that it can
       * be suppressed in GWT tests.
       */
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/NullnessCasts.java

        return t;
      }
    
      /** Returns {@code null} as any type, even one that does not include {@code null}. */
      @SuppressWarnings({"nullness", "TypeParameterUnusedInFormals", "ReturnMissingNullable"})
      // The warnings are legitimate. Each time we use this method, we document why.
      @ParametricNullness
      static <T extends @Nullable Object> T unsafeNull() {
        return null;
      }
    
      private NullnessCasts() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/NullnessCasts.java

        return t;
      }
    
      /** Returns {@code null} as any type, even one that does not include {@code null}. */
      @SuppressWarnings({"nullness", "TypeParameterUnusedInFormals", "ReturnMissingNullable"})
      // The warnings are legitimate. Each time we use this method, we document why.
      @ParametricNullness
      static <T extends @Nullable Object> T unsafeNull() {
        return null;
      }
    
      private NullnessCasts() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. cmd/metacache-bucket.go

    }
    
    // updateCacheEntry will update a cache.
    // Returns the updated status.
    func (b *bucketMetacache) updateCacheEntry(update metacache) (metacache, error) {
    	b.mu.Lock()
    	defer b.mu.Unlock()
    	existing, ok := b.caches[update.id]
    	if !ok {
    		return update, errFileNotFound
    	}
    	existing.update(update)
    	b.caches[update.id] = existing
    	b.updated = true
    	return existing, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top