- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 358 for cleaner (0.07 seconds)
-
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) -
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) -
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) -
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) -
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) -
guava/src/com/google/common/hash/AbstractCompositeHashFunction.java
* has consumed the entire input and they are ready to output a {@code HashCode}. The order of the * hashers are the same order as the functions given to the constructor. */ // this could be cleaner if it passed HashCode[], but that would create yet another array... /* protected */ abstract HashCode makeHash(Hasher[] hashers); @Override public Hasher newHasher() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 5.3K bytes - Click Count (0) -
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) -
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.jsCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.1K bytes - Click Count (1) -
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) -
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)