Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for AutoCloseable (0.13 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java

    import java.util.ArrayList;
    import java.util.List;
    
    import org.jline.console.CommandRegistry;
    
    import static java.util.Objects.requireNonNull;
    
    public class ShellCommandRegistryHolder implements AutoCloseable {
        private final List<CommandRegistry> commandRegistries;
    
        public ShellCommandRegistryHolder() {
            this.commandRegistries = new ArrayList<>();
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:50:45 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbSessionTest.java

    class SmbSessionTest {
    
        @Nested
        @DisplayName("AutoCloseable Contract Tests")
        class AutoCloseableContractTest {
    
            @Test
            @DisplayName("Should implement AutoCloseable interface")
            void shouldImplementAutoCloseable() {
                assertTrue(AutoCloseable.class.isAssignableFrom(SmbSession.class), "SmbSession should implement AutoCloseable interface");
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/CloseableIteratorTest.java

            // Then
            verify(mockIterator).close();
        }
    
        @Test
        @DisplayName("Should extend Iterator and AutoCloseable")
        void testInterfaceInheritance() {
            // Then
            assertTrue(java.util.Iterator.class.isAssignableFrom(CloseableIterator.class));
            assertTrue(AutoCloseable.class.isAssignableFrom(CloseableIterator.class));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Invoker.java

     * that can handle various types of {@link InvokerRequest InvokerRequests}. It also implements
     * {@link AutoCloseable} to ensure proper resource management.</p>
     *
     * @since 4.0.0
     */
    @Experimental
    public interface Invoker extends AutoCloseable {
        /**
         * Invokes the Maven application using the provided {@link InvokerRequest}.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbTreeHandle.java

     *
     * @author mbechler
     *
     */
    public interface SmbTreeHandle extends AutoCloseable {
    
        /**
         * Gets the active configuration for this tree handle
         * @return the active configuration
         */
        Configuration getConfig();
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close() throws CIFSException;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbWatchHandle.java

    import java.util.List;
    import java.util.concurrent.Callable;
    
    /**
     * Handle for receiving change notifications from an SMB server
     *
     *
     * @author mbechler
     *
     */
    public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>> {
    
        /**
         * Get the next set of changes
         *
         * Will block until the server returns a set of changes that match the given filter. The file will be automatically
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. 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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbTransport.java

     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB transport
     *
     * @author mbechler
     *
     * <p>This interface is intended for internal use.</p>
     */
    public interface SmbTransport extends AutoCloseable {
    
        /**
         * Gets the CIFS context associated with this transport.
         *
         * @return the context this transport is attached to
         */
        CIFSContext getContext();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbFileHandle.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    /**
     * Handle to an open file
     *
     * @author mbechler
     *
     */
    public interface SmbFileHandle extends AutoCloseable {
    
        /**
         * Returns the tree handle associated with this file handle
         *
         * @return the tree
         */
        SmbTreeHandle getTree();
    
        /**
         * Checks if this file handle is still valid
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/logging/ProjectBuildLogAppender.java

     */
    package org.apache.maven.logging;
    
    import org.apache.maven.slf4j.MavenSimpleLogger;
    import org.slf4j.MDC;
    
    /**
     * Forwards log messages to the client.
     */
    public class ProjectBuildLogAppender implements AutoCloseable {
    
        private static final String KEY_PROJECT_ID = "maven.project.id";
        private static final ThreadLocal<String> PROJECT_ID = new InheritableThreadLocal<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top