- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for AutoCloseable (0.08 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
List<Class<?>> interfaces = new ArrayList<>(Arrays.asList(forwarderClass.getInterfaces())); // Desugaring may introduce AutoCloseable as an extra interface. interfaces.remove(AutoCloseable.class); @SuppressWarnings("unchecked") // super interface type of T Class<? super T> interfaceType = (Class<? super T>) Iterables.getOnlyElement(interfaces);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
List<Class<?>> interfaces = new ArrayList<>(Arrays.asList(forwarderClass.getInterfaces())); // Desugaring may introduce AutoCloseable as an extra interface. interfaces.remove(AutoCloseable.class); @SuppressWarnings("unchecked") // super interface type of T Class<? super T> interfaceType = (Class<? super T>) Iterables.getOnlyElement(interfaces);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt
* * `WARN` Holds resources open for performance, must be closed after use. */ class BinaryCompatibilityRepository internal constructor( private val sources: SourcesRepository ) : AutoCloseable { companion object { @JvmStatic fun openRepositoryFor(sourceRoots: List<File>, compilationClasspath: List<File>) =
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 3.8K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt
import java.io.File class KotlinSourceParser { data class ParsedKotlinFiles( val ktFiles: List<KtFile>, private val disposable: Disposable ) : AutoCloseable { override fun close() { Disposer.dispose(disposable) } } private val messageCollector: MessageCollectorCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 18 05:37:07 GMT 2026 - 3.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* Level 28</a> is the first version in which {@code MediaDrm} is {@code AutoCloseable}. To * support older versions, pass a wrapper {@code AutoCloseable} with a method reference like * {@code mediaDrm::release}. * * @param closeable the object to be closed
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 101.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
GcFinalization.awaitDone(finalizeReferentRan::get); 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 () -> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Feb 27 21:20:19 GMT 2026 - 8.6K bytes - Click Count (0) -
CLAUDE.md
### Core Principles **Thread Safety**: `AtomicLong` for counters, `volatile` for status flags, synchronized blocks, thread-local storage via `CrawlingParameterUtil` **Resource Management**: `AutoCloseable` throughout, `DeferredFileOutputStream` for large responses, connection pooling, background temp file deletion via `FileUtil.deleteInBackground()`
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Mar 12 03:39:20 GMT 2026 - 8.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
assertClosed(closeable1, closeable2); } public void testAutoCloseable() throws Exception { AutoCloseable autoCloseable = closeable1::close; ClosingFuture<String> closingFuture = ClosingFuture.submit( closer -> { closer.eventuallyClose(autoCloseable, closingExecutor); return "foo"; }, executor);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
assertClosed(closeable1, closeable2); } public void testAutoCloseable() throws Exception { AutoCloseable autoCloseable = closeable1::close; ClosingFuture<String> closingFuture = ClosingFuture.submit( closer -> { closer.eventuallyClose(autoCloseable, closingExecutor); return "foo"; }, executor);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
} abstract class TestFilesCleanupService @Inject constructor( private val fileSystemOperations: FileSystemOperations, ) : BuildService<TestFilesCleanupService.Params>, AutoCloseable, OperationCompletionListener { interface Params : BuildServiceParameters { val rootBuildDir: DirectoryProperty }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 11 11:05:07 GMT 2026 - 14.3K bytes - Click Count (1)