Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 277 for IllegalStateException (0.15 sec)

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

      }
    
      @Test
      fun incompleteUrlComposition() {
        val noHost =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().scheme("http").build()
          }
        assertThat(noHost.message).isEqualTo("host == null")
        val noScheme =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().host("host").build()
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

        }
    
        @Override
        public void remove() {
          checkRemove(false);
        }
      }
    
      /**
       * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link
       * UnsupportedOperationException} on a call to {@link Iterator#remove()}.
       */
      // Casting to any type is safe since there are no actual elements.
      @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FluentIterable.java

       * iterator, as the {@code Iterator} contract states that a call to {@code * remove()} before a
       * call to {@code next()} will throw an {@link IllegalStateException}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#skip} (same).
       */
      public final FluentIterable<E> skip(int numberToSkip) {
        return from(Iterables.skip(getDelegate(), numberToSkip));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_2x.md

     *  Fix: `HttpUrl` now uses the canonical form for IPv6 addresses.
     *  Fix: Use `HttpUrl` internally.
     *  Fix: Recover from Android 4.2.2 EBADF crashes.
     *  Fix: Don't crash with an `IllegalStateException` if an HTTP/2 or SPDY
        write fails, leaving the connection in an inconsistent state.
     *  Fix: Make sure the default user agent is ASCII.
    
    
    ## Version 2.4.0
    
    _2015-05-22_
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/ClassPath.java

          try {
            return loader.loadClass(className);
          } catch (ClassNotFoundException e) {
            // Shouldn't happen, since the class name is read from the class path.
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public String toString() {
          return className;
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link
       * java.nio.file.Files#createTempDirectory}.
       *
       * @return the newly-created directory
       * @throws IllegalStateException if the directory could not be created, such as if the system does
       *     not support creating temporary directories securely
       * @deprecated For Android users, see the <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap.Builder<String, Integer> builder =
            new Builder<String, Integer>().orderEntriesByValue(Ordering.natural());
        assertThrows(
            IllegalStateException.class, () -> builder.orderEntriesByValue(Ordering.natural()));
      }
    
      @GwtIncompatible // we haven't implemented this
      public void testBuilder_orderEntriesByValue_keepingLast() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        /**
         * Gets the root directory of the session, which is the root directory for the top directory project.
         *
         * @return the root directory, never {@code null}
         * @throws IllegalStateException if the root directory could not be found
         * @see #getTopDirectory()
         * @see Project#getRootDirectory()
         * @see Project#isRootProject()
         */
        @Nonnull
        Path getRootDirectory();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

                },
            ),
          )
        assertThat(readAscii(response.body.byteStream(), Int.MAX_VALUE))
          .isEqualTo("abc")
        assertFailsWith<IllegalStateException> {
          sinkReference.get().flush()
        }
        assertFailsWith<IllegalStateException> {
          sinkReference.get().write("ghi".toByteArray())
          sinkReference.get().emit()
        }
      }
    
      @Test
      fun getHeadersThrows() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/Files.java

       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link
       * java.nio.file.Files#createTempDirectory}.
       *
       * @return the newly-created directory
       * @throws IllegalStateException if the directory could not be created, such as if the system does
       *     not support creating temporary directories securely
       * @deprecated For Android users, see the <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top