Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 231 for AssertionError (0.12 sec)

  1. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
            throw new AssertionError("cannot store more than MAX_VALUE elements");
          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      @Override
      public ImmutableSortedSet<K> keySet() {
        return keySet;
      }
    
      @Override
      ImmutableSet<K> createKeySet() {
        throw new AssertionError("should never be called");
      }
    
      /**
       * Returns an immutable collection of the values in this map, sorted by the ordering of the
       * corresponding keys.
       */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedSet.java

            int cmp = comparator.compare(elements[unique - 1], elements[i]);
            if (cmp < 0) {
              elements[unique++] = elements[i];
            } else if (cmp > 0) {
              throw new AssertionError(
                  "Comparator " + comparator + " compare method violates its contract");
            }
          }
          Arrays.fill(elements, unique, n, null);
          n = unique;
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

          }
    
          // identityHashCode collision (rare, but not as rare as you'd think)
          int result = getUid(left).compareTo(getUid(right));
          if (result == 0) {
            throw new AssertionError(); // extremely, extremely unlikely.
          }
          return result;
        }
    
        @Override
        public String toString() {
          return "Ordering.arbitrary()";
        }
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

            case WILL_CLOSE:
            case CLOSING:
            case CLOSED:
              throw new IllegalStateException("Cannot call finishToFuture() twice");
    
            case OPEN:
              throw new AssertionError();
          }
        }
        return future;
      }
    
      /**
       * Marks this step as the last step in the {@code ClosingFuture} pipeline. When this step is done,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/BaseEncoding.java

        StringBuilder result = new StringBuilder(maxEncodedSize(len));
        try {
          encodeTo(result, bytes, off, len);
        } catch (IOException impossible) {
          throw new AssertionError(impossible);
        }
        return result.toString();
      }
    
      /**
       * Returns an {@code OutputStream} that encodes bytes using this encoding into the specified
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

        }
    
        @Override
        public Set<Entry<K, V>> entries() {
          return map.entrySet();
        }
    
        @Override
        Collection<Entry<K, V>> createEntries() {
          throw new AssertionError("unreachable");
        }
    
        @Override
        Multiset<K> createKeys() {
          return new Multimaps.Keys<K, V>(this);
        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Ordering.java

          }
    
          // identityHashCode collision (rare, but not as rare as you'd think)
          int result = getUid(left).compareTo(getUid(right));
          if (result == 0) {
            throw new AssertionError(); // extremely, extremely unlikely.
          }
          return result;
        }
    
        @Override
        public String toString() {
          return "Ordering.arbitrary()";
        }
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            responses.offer(response!!.body.string())
            try {
              latch.await()
            } catch (e: InterruptedException) {
              throw AssertionError()
            }
            response.request
          }
        val blockingAuthClient =
          client.newBuilder()
            .authenticator(authenticator)
            .build()
        val callback: Callback =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

        // Confirm the interceptor isn't exercised.
        client =
          client.newBuilder()
            .addNetworkInterceptor(Interceptor { chain: Interceptor.Chain? -> throw AssertionError() })
            .build()
        assertThat(get(url).body.string()).isEqualTo("A")
      }
    
      @Test
      fun iterateCache() {
        // Put some responses in the cache.
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top