Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NoSuchElementException (0.12 sec)

  1. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response1.body.string()).isEqualTo("ABC")
        val cacheEntry =
          fileSystem.allPaths.stream()
            .filter { e: Path -> e.name.endsWith(".0") }
            .findFirst()
            .orElseThrow { NoSuchElementException() }
        corruptCertificate(cacheEntry)
        val response2 = client.newCall(request).execute() // Not Cached!
        assertThat(response2.body.string()).isEqualTo("DEF")
        assertThat(cache.requestCount()).isEqualTo(2)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

        public K firstKey() {
          // correctly throws NoSuchElementException when filtered map is empty.
          return keySet().iterator().next();
        }
    
        @Override
        @ParametricNullness
        public K lastKey() {
          SortedMap<K, V> headMap = sortedMap();
          while (true) {
            // correctly throws NoSuchElementException when filtered map is empty.
            K key = headMap.lastKey();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

        public K firstKey() {
          // correctly throws NoSuchElementException when filtered map is empty.
          return keySet().iterator().next();
        }
    
        @Override
        @ParametricNullness
        public K lastKey() {
          SortedMap<K, V> headMap = sortedMap();
          while (true) {
            // correctly throws NoSuchElementException when filtered map is empty.
            K key = headMap.lastKey();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

    import java.util.AbstractMap;
    import java.util.AbstractQueue;
    import java.util.AbstractSet;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Queue;
    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ConcurrentLinkedQueue;
    import java.util.concurrent.ConcurrentMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top