Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 260 for checker (3.47 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

        this.inputFuture = checkNotNull(inputFuture);
        this.function = checkNotNull(function);
      }
    
      @Override
      @SuppressWarnings({
        "CatchingUnchecked", // sneaky checked exception
        "nullness", // TODO(b/147136275): Remove once our checker understands & and |.
      })
      public final void run() {
        @RetainedLocalRef ListenableFuture<? extends I> localInputFuture = inputFuture;
        @RetainedLocalRef F localFunction = function;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        Object result = get(hashTable, alternatingKeysAndValues, size, 0, key);
        /*
         * We can't simply cast the result of `RegularImmutableMap.get` to V because of a bug in our
         * nullness checker (resulting from https://github.com/jspecify/checker-framework/issues/8).
         */
        if (result == null) {
          return null;
        } else {
          return (V) result;
        }
      }
    
      static @Nullable Object get(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashMap.java

              ? delegate.keySet().toArray()
              : ObjectArrays.copyAsObjectArray(requireKeys(), 0, size);
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] a) {
          if (needsAllocArrays()) {
            if (a.length > 0) {
              @Nullable Object[] unsoundlyCovariantArray = a;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/StandardTable.java

                return requireNonNull(get(entry.getKey())).equals(entry.getValue());
              }
            }
            return false;
          }
    
          @Override
          public boolean remove(@Nullable Object obj) {
            /*
             * `o instanceof Entry` is guaranteed by `contains`, but we check it here to satisfy our
             * nullness checker.
             */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeRangeMap.java

        Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry();
        // Either both are null or neither is, but we check both to satisfy the nullness checker.
        if (firstEntry == null || lastEntry == null) {
          throw new NoSuchElementException();
        }
        return Range.create(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           * out by the time the listener runs for the final future -- at which point we need to check
           * all inputs for exceptions *if* we're collecting values. If we're not, then the listener
           * doesn't need access to the futures again, so we can just pass `null`.
           *
           * TODO(b/112550045): Allocating a single, cheaper listener is (I think) only an optimization.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashSet.java

        return (delegate != null) ? delegate.toArray() : Arrays.copyOf(requireElements(), size);
      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
      public <T extends @Nullable Object> T[] toArray(T[] a) {
        if (needsAllocArrays()) {
          if (a.length > 0) {
            a[0] = null;
          }
          return a;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
      public <T extends @Nullable Object> T[] toArray(T[] other) {
        return ObjectArrays.toArrayImpl(this, other);
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        try {
          // This set never contains null.  We need to explicitly check here
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMultiset.java

      }
    
      @J2ktIncompatible
      static final class SerializedForm implements Serializable {
        final Object[] elements;
        final int[] counts;
    
        // "extends Object" works around https://github.com/typetools/checker-framework/issues/3013
        SerializedForm(Multiset<? extends Object> multiset) {
          int distinct = multiset.entrySet().size();
          elements = new Object[distinct];
          counts = new int[distinct];
          int i = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

     *
     * @param <K> the base key type
     * @param <V> the base value type
     * @author Charles Fry
     * @author Jon Donovan
     */
    @NullUnmarked
    @SuppressWarnings("nullness") // TODO: b/384945891 - Remove after fixing checker.
    public class LocalCache<K, V> implements ConcurrentMap<K, V> {
      private static final int UNSET_INT = CacheBuilder.UNSET_INT;
    
      private final LinkedHashMap<K, Timestamped<V>> cachingHashMap;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
Back to top