Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for checker (0.03 sec)

  1. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

        /*
         * 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;
        }
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

                } catch (ClassCastException e) {
                  return false;
                }
              }
    
              @Override
              @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
              public <T extends @Nullable Object> T[] toArray(T[] array) {
                T[] result = super.toArray(array);
                if (size() < result.length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java

        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public @Nullable Object[] toArray() {
        return standardToArray();
      }
    
      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
      public <T extends @Nullable Object> T[] toArray(T[] array) {
        return standardToArray(array);
      }
    
      @Override
      public String toString() {
        return entrySet().toString();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

      }
    
      @GwtIncompatible
      private static 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: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

        }
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
        // Either both arrays are null or neither is, but we check both to satisfy the nullness checker.
        if (predecessor != null && successor != null) {
          Arrays.fill(predecessor, 0, size(), 0);
          Arrays.fill(successor, 0, size(), 0);
        }
        super.clear();
      }
    
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableCollection.java

          checkElementsNotNull(elements, n);
          ensureRoomFor(n);
          /*
           * The following call is not statically checked, since arraycopy accepts plain Object for its
           * parameters. If it were statically checked, the checker would still be OK with it, since
           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          } catch (Exception | Error unsafeFailure) { // sneaky checked exception
            thrownUnsafeFailure = unsafeFailure;
            // Catch absolutely everything and fall through to AtomicReferenceFieldUpdaterAtomicHelper.
            try {
              helper = new AtomicReferenceFieldUpdaterAtomicHelper();
            } catch (Exception // sneaky checked exception
                | Error atomicReferenceFieldUpdaterFailure) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          } catch (Exception | Error unsafeFailure) { // sneaky checked exception
            thrownUnsafeFailure = unsafeFailure;
            // Catch absolutely everything and fall through to AtomicReferenceFieldUpdaterAtomicHelper.
            try {
              helper = new AtomicReferenceFieldUpdaterAtomicHelper();
            } catch (Exception // sneaky checked exception
                | Error atomicReferenceFieldUpdaterFailure) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

             */
            @SuppressWarnings("nullness")
            Object[] result = standardToArray();
            return result;
          }
    
          @Override
          @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
          public <T extends @Nullable Object> T[] toArray(T[] array) {
            return standardToArray(array);
          }
        };
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top