Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for unsoundlyCovariantArray (0.31 sec)

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

        int size = c.size();
        if (array.length < size) {
          array = newArray(array, size);
        }
        fillArray(c, array);
        if (array.length > size) {
          @Nullable Object[] unsoundlyCovariantArray = array;
          unsoundlyCovariantArray[size] = null;
        }
        return array;
      }
    
      /**
       * Implementation of {@link Collection#toArray(Object[])} for collections backed by an object
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

                if (size() < result.length) {
                  // It works around a GWT bug where elements after last is not
                  // properly null'ed.
                  @Nullable Object[] unsoundlyCovariantArray = result;
                  unsoundlyCovariantArray[size()] = null;
                }
                return result;
              }
            });
      }
    
      @Override
      ImmutableSet<K> createKeySet() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 24 16:03:45 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashMap.java

        public <T extends @Nullable Object> T[] toArray(T[] a) {
          if (needsAllocArrays()) {
            if (a.length > 0) {
              @Nullable Object[] unsoundlyCovariantArray = a;
              unsoundlyCovariantArray[0] = null;
            }
            return a;
          }
          Map<K, V> delegate = delegateOrNull();
          return (delegate != null)
              ? delegate.keySet().toArray(a)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
Back to top