Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1651 - 1660 of 3,282 for throwIt (0.06 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

          "ConnectionReleased",
        )
      }
    
      @Test
      @Throws(IOException::class)
      fun successfulEmptyH2CallEventSequence() {
        enableTls()
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(MockResponse())
        assertSuccessfulEventOrder()
      }
    
      @Test
      @Throws(IOException::class)
      fun multipleDnsLookupsForSingleCall() {
        server.enqueue(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/TestByteSink.java

      }
    
      @Override
      public OutputStream openStream() throws IOException {
        outputStreamOpened = true;
        bytes.reset(); // truncate
        return new Out();
      }
    
      private final class Out extends TestOutputStream {
    
        Out() throws IOException {
          super(bytes, options);
        }
    
        @Override
        public void close() throws IOException {
          outputStreamClosed = true;
          super.close();
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

    import okhttp3.Response;
    
    public class CancelCall {
      private final ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        final long startNanos = System.nanoTime();
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedComponentConfigurator.java

                final PlexusConfiguration configuration,
                final ExpressionEvaluator evaluator,
                final ClassRealm realm,
                final ConfigurationListener listener)
                throws ComponentConfigurationException {
            try {
                ClassRealmConverter.pushContextRealm(realm);
    
                this.configureComponent(component, configuration, evaluator, (ClassLoader) realm, listener);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/TestByteSource.java

      }
    
      @Override
      public InputStream openStream() throws IOException {
        inputStreamOpened = true;
        return new RandomAmountInputStream(new In(), new Random());
      }
    
      private final class In extends TestInputStream {
    
        In() throws IOException {
          super(new ByteArrayInputStream(bytes), options);
        }
    
        @Override
        public void close() throws IOException {
          inputStreamClosed = true;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/io/TestByteSource.java

      }
    
      @Override
      public InputStream openStream() throws IOException {
        inputStreamOpened = true;
        return new RandomAmountInputStream(new In(), new Random());
      }
    
      private final class In extends TestInputStream {
    
        In() throws IOException {
          super(new ByteArrayInputStream(bytes), options);
        }
    
        @Override
        public void close() throws IOException {
          inputStreamClosed = true;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelWriter.java

     */
    @Named
    @Singleton
    @Deprecated(since = "4.0.0")
    public class DefaultModelWriter implements ModelWriter {
    
        @Override
        public void write(File output, Map<String, Object> options, Model model) throws IOException {
            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(model, "model cannot be null");
    
            output.getParentFile().mkdirs();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            // Verify bytes written
            assertEquals(20 + nameLength, bytesWritten);
        }
    
        @Test
        @DisplayName("Test decode with replaceIfExists true")
        void testDecodeWithReplaceIfExistsTrue() throws SMBProtocolDecodingException {
            String originalFileName = "testfile.txt";
            byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE);
    
            byte[] buffer = new byte[100];
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/logging/MavenTransferListener.java

        }
    
        @Override
        public void transferInitiated(TransferEvent event) throws TransferCancelledException {
            dispatcher.transfer(ProjectBuildLogAppender.getProjectId(), event);
            delegate.transferInitiated(event);
        }
    
        @Override
        public void transferStarted(TransferEvent event) throws TransferCancelledException {
            dispatcher.transfer(ProjectBuildLogAppender.getProjectId(), event);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       * should cause {@link #run()} to return.
       */
      protected abstract void run() throws Exception;
    
      /**
       * Stop the service. This method is invoked on the execution thread.
       *
       * <p>By default this method does nothing.
       */
      // TODO: consider supporting a TearDownTestCase-like API
      protected void shutDown() throws Exception {}
    
      /**
       * Invoked to request the service to stop.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 7.5K bytes
    - Click Count (0)
Back to Top