Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 198 of 198 for AssertionError (0.04 sec)

  1. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          collection = createCollection(key);
          if (collection.add(value)) {
            totalSize++;
            map.put(key, collection);
            return true;
          } else {
            throw new AssertionError("New Collection violated the Collection spec");
          }
        } else if (collection.add(value)) {
          totalSize++;
          return true;
        } else {
          return false;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  2. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 13:51:27 UTC 2025
    - 96.9K bytes
    - Viewed (0)
  3. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  4. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Oct 06 14:51:47 UTC 2025
    - 41.7K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/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()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

                }
    
                override fun connectFailed(
                  uri: URI,
                  address: SocketAddress,
                  failure: IOException,
                ): Unit = throw AssertionError()
              },
            ).build()
        server2.enqueue(
          MockResponse(body = "This is the 2nd server!"),
        )
        server.enqueue(
          MockResponse(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top