Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 252 for cleaner (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/base/FinalizableReferenceQueue.java

     *     serverSocket.close();
     *   }
     * }
     * }
     *
     * <p id="cleaner">Here is how you might achieve the same thing using {@link java.lang.ref.Cleaner
     * Cleaner}, if you are using a Java version where that is available:
     *
     * {@snippet :
     * public class MyServer implements Closeable {
     *   private static final Cleaner cleaner = Cleaner.create();
     *   // You might also share this between several objects.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt

            .serialNumber(4L)
            .signedBy(certA)
            .build()
        val cleaner =
          get(
            selfSigned.certificate,
            trusted.certificate,
          )
        assertThat(cleaner.clean(list(certB, certA), "hostname")).isEqualTo(
          list(certB, certA, trusted, selfSigned),
        )
        assertThat(cleaner.clean(list(certB, certA, trusted), "hostname")).isEqualTo(
          list(certB, certA, trusted, selfSigned),
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 9.5K bytes
    - Click Count (1)
  3. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        assertThat(serverSocket.isClosed()).isTrue();
      }
    
      @SuppressWarnings("Java8ApiChecker")
      static class MyServerExampleWithCleaner implements AutoCloseable {
        private static final Cleaner cleaner = Cleaner.create();
    
        private static Runnable closeServerSocketRunnable(
            ServerSocket serverSocket, AtomicBoolean cleanerRan) {
          return () -> {
            try {
              serverSocket.close();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt

     * certificate.
     *
     * Use of the chain cleaner is necessary to omit unexpected certificates that aren't relevant to
     * the TLS handshake and to extract the trusted CA certificate for the benefit of certificate
     * pinning.
     */
    abstract class CertificateChainCleaner {
      @Throws(SSLPeerUnverifiedException::class)
      abstract fun clean(
        chain: List<Certificate>,
        hostname: String,
      ): List<Certificate>
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

    import java.security.cert.X509Certificate
    import java.util.ArrayDeque
    import java.util.Deque
    import javax.net.ssl.SSLPeerUnverifiedException
    
    /**
     * A certificate chain cleaner that uses a set of trusted root certificates to build the trusted
     * chain. This class duplicates the clean chain building performed during the TLS handshake. We
     * prefer other mechanisms where they exist, such as with
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/advanced-dependencies.md

    /// tip
    
    Additionally, a background task is normally an independent set of logic that should be handled separately, with its own resources (e.g. its own database connection).
    
    So, this way you will probably have cleaner code.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/generate-clients.md

    But for the generated client, we could **modify** the OpenAPI operation IDs right before generating the clients, just to make those method names nicer and **cleaner**.
    
    We could download the OpenAPI JSON to a file `openapi.json` and then we could **remove that prefixed tag** with a script like this:
    
    {* ../../docs_src/generate_clients/tutorial004_py39.py *}
    
    //// tab | Node.js
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.1K bytes
    - Click Count (1)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

          }
        }
      }
    
      /**
       * Not checking the CA bit created a vulnerability in old OkHttp releases. It is exploited by
       * triggering different chains to be discovered by the TLS engine and our chain cleaner. In this
       * attack there's several different chains.
       *
       *
       * The victim's gets a non-CA certificate signed by a CA, and pins the CA root and/or
       * intermediate. This is business as usual.
       *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 24.3K bytes
    - Click Count (2)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

         * spot before warnings would be emitted.
         * <p>
         * The method returns a "cleaner" runnable, as during extension loading the context needs to be "cleaned", restored
         * to previous state (as it was before extension loading).
         */
        protected Runnable settings(C context, boolean emitSettingsWarnings, SettingsBuilder settingsBuilder)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/util/concurrent/MoreExecutors.java

                      // is undefined in shutdown hooks.
                      // This is because the logging code installs a shutdown hook of its
                      // own. See Cleaner class inside {@link LogManager}.
                      service.awaitTermination(terminationTimeout, timeUnit);
                    } catch (InterruptedException ignored) {
                      // We're shutting down anyway, so just ignore.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 45.2K bytes
    - Click Count (0)
Back to Top