Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 145 for Wain (0.33 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        } catch (IOException e) {
          System.out.printf("%.2f Call failed as expected: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, e);
        }
      }
    
      public static void main(String... args) throws Exception {
        new CancelCall().run();
      }
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/XslTransformer.java

    import javax.xml.transform.stream.StreamSource;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    
    public class XslTransformer {
        public static void main(String[] args) throws TransformerException, IOException {
            if (args.length < 3 || args.length > 4) {
                throw new IllegalArgumentException("USAGE: <style-sheet> <source-file> <dest-file> [dest-dir]");
            }
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 05 19:36:14 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        /*
         * The main test thread tries to stop() the service shortly after
         * confirming that it is running. Meanwhile, the service itself is trying
         * to confirm that it is running. If the main thread's stop() call happens
         * before it has the chance, the test will fail. To avoid this, the main
         * thread calls this method, which waits until the service has performed
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  4. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

            if (link == null) continue; // URL is either invalid or its scheme isn't http/https.
            queue.add(link.newBuilder().fragment(null).build());
          }
        }
      }
    
      public static void main(String[] args) throws IOException {
        if (args.length != 2) {
          System.out.println("Usage: Crawler <cache dir> <root>");
          return;
        }
    
        int threadCount = 20;
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        try (Response response = client.newCall(request).execute()) {
          // Consume and discard the response body.
          response.body().source().readByteString();
        }
      }
    
      public static void main(String... args) throws Exception {
        new PrintEventsNonConcurrent().run();
      }
    
      private static final class PrintingEventListener extends EventListener {
        long callStartNanos;
    
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

                for (Artifact main : mains) {
                    result.remove(main);
                    result.add(new DefaultArtifact(
                            main.getGroupId(),
                            main.getArtifactId(),
                            BUILD_POM_CLASSIFIER,
                            main.getExtension(),
                            main.getVersion(),
                            main.getProperties(),
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       conformance.
     *   <li>The test classes currently do not declare inclusion in any particular package to simplify
     *       things for people integrating them in TCK test suites.
     *   <li>As a convenience, the {@code main} of this class (JSR166TestCase) runs all JSR166 unit
     *       tests.
     * </ul>
     */
    abstract class JSR166TestCase extends TestCase {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final CountDownLatch computeSignal = new CountDownLatch(1);
        // tells the main thread when computation is pending
        final CountDownLatch secondSignal = new CountDownLatch(1);
        // tells the main thread when the second get has started
        final CountDownLatch thirdSignal = new CountDownLatch(1);
        // tells the main thread when the third get has started
        final CountDownLatch fourthSignal = new CountDownLatch(1);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

         * impossible. We want the test, though, in case that changes in the future,
         * so we use isInstance instead.
         */
        assertFalse(
            "Can't test the main listenInPoolThread path "
                + "if the input is already a ListenableFuture",
            ListenableFuture.class.isInstance(input));
        ListenableFuture<String> listenable = listenInPoolThread(input);
        /*
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/ExtensibleEnumRegistries.java

            @Inject
            public DefaultPathScopeRegistry(List<PathScopeProvider> providers) {
                super(
                        providers,
                        PathScope.MAIN_COMPILE,
                        PathScope.MAIN_RUNTIME,
                        PathScope.TEST_COMPILE,
                        PathScope.TEST_RUNTIME);
            }
        }
    
        @Named
        @SessionScoped
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top