Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 741 - 750 of 3,522 for throwIf (0.25 seconds)

  1. android/guava-tests/test/com/google/common/base/JoinerTest.java

              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(char c) throws IOException {
              throw new IOException();
            }
          };
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

        class MvnDirectoryCreationTests {
    
            @Test
            @DisplayName("should create .mvn directory when model version is not 4.1.0")
            void shouldCreateMvnDirectoryWhenModelVersionNot410() throws Exception {
                Path projectDir = tempDir.resolve("project");
                Files.createDirectories(projectDir);
    
                // Create a simple POM file
                String pomXml = PomBuilder.create()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertFalse(capabilities.contains(RdmaCapability.RDMA_WRITE), "Should not support RDMA write");
        }
    
        @Test
        public void testCreateConnection() throws Exception {
            InetSocketAddress remote = new InetSocketAddress("localhost", 445);
            InetSocketAddress local = null;
    
            RdmaConnection connection = provider.createConnection(remote, local);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/session/Smb2LogoffResponse.java

            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if the response structure is invalid
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  5. samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java

      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        RequestBody requestBody = new RequestBody() {
          @Override public MediaType contentType() {
            return MEDIA_TYPE_MARKDOWN;
          }
    
          @Override public void writeTo(BufferedSink sink) throws IOException {
            sink.writeUtf8("Numbers\n");
            sink.writeUtf8("-------\n");
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 2.1K bytes
    - Click Count (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      }
    
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) {
        started = true
        delegate.start(port)
      }
    
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        started = true
        delegate.start(inetAddress, port)
      }
    
      @Synchronized
      @Throws(IOException::class)
      fun shutdown() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 00:19:42 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          putIndex = 0;
          takeIndex = 0;
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @throws UnsupportedOperationException {@inheritDoc}
       * @throws ClassCastException {@inheritDoc}
       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        public void testClosedAuthenticatorBlocking() throws Exception {
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("DOMAIN", "user", "BlockedPass123!");
    
            // Close the authenticator
            auth.close();
    
            // All these operations should throw IllegalStateException
            assertThrows(IllegalStateException.class, () -> auth.getPassword());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            "retry:".encodeUtf8(),
          )
    
        private val CRLF = "\r\n".encodeUtf8()
    
        @Throws(IOException::class)
        private fun BufferedSource.readData(data: Buffer) {
          data.writeByte('\n'.code)
          readFully(data, indexOfElement(CRLF))
          select(options) // Skip the newline bytes.
        }
    
        @Throws(IOException::class)
        private fun BufferedSource.readRetryMs(): Long {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p>If the mapped keys contain duplicates, an {@code IllegalArgumentException} is thrown when
       * the collection operation is performed. (This differs from the {@code Collector} returned by
       * {@link java.util.stream.Collectors#toMap(java.util.function.Function,
       * java.util.function.Function) Collectors.toMap(Function, Function)}, which throws an {@code
       * IllegalStateException}.)
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
Back to Top