Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 1,206 for handle (0.05 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestCacheFactory.java

     * under the License.
     */
    package org.apache.maven.api.cache;
    
    import org.apache.maven.api.annotations.Experimental;
    
    /**
     * Factory interface for creating new RequestCache instances.
     * Implementations should handle the creation and configuration of cache instances
     * based on the current Maven session and environment.
     *
     * @since 4.0.0
     * @see RequestCache
     */
    @Experimental
    public interface RequestCacheFactory {
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
        // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS).
        return if (uri.scheme == "http" || uri.scheme == "https") proxies else listOf(Proxy.NO_PROXY)
      }
    
      override fun connectFailed(
        uri: URI,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/AddressTest.java

            assertSame(expectedInetAddress, inetAddress, "Should return configured InetAddress");
            assertNotNull(inetAddress, "InetAddress should not be null");
        }
    
        @Test
        @DisplayName("toInetAddress should handle UnknownHostException")
        void testToInetAddressWithException() throws UnknownHostException {
            // Given
            when(mockAddress.toInetAddress()).thenThrow(new UnknownHostException("Host not found"));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            // Then
            assertNotNull(ex);
            assertEquals(message, ex.getMessage());
            assertEquals(cause, ex.getCause());
        }
    
        @Test
        @DisplayName("Should handle null message and/or cause without throwing")
        void testNullInputs() {
            assertDoesNotThrow(() -> {
                SpnegoException ex1 = new SpnegoException((String) null);
                assertNotNull(ex1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/background-tasks.md

    Create a function to be run as the background task.
    
    It is just a standard function that can receive parameters.
    
    It can be an `async def` or normal `def` function, **FastAPI** will know how to handle it correctly.
    
    In this case, the task function will write to a file (simulating sending an email).
    
    And as the write operation doesn't use `async` and `await`, we define the function with normal `def`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/MsrpcLookupSids.java

     */
    public class MsrpcLookupSids extends jcifs.dcerpc.msrpc.lsarpc.LsarLookupSids {
    
        /**
         * Creates a new request to lookup SIDs.
         *
         * @param policyHandle the LSA policy handle
         * @param sids the array of SIDs to lookup
         */
        public MsrpcLookupSids(final LsaPolicyHandle policyHandle, final jcifs.SID[] sids) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            byte[] buffer = new byte[512];
            int written = trans2QueryPathInfo.writeParametersWireFormat(buffer, 0);
    
            // Should handle special characters properly
            assertTrue(written > specialPath.length());
    
            // Check information level
            int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            verifyNoInteractions(mockDir);
        }
    
        /**
         * Invalid/null inputs: ensure filters can handle null name and dir.
         */
        @ParameterizedTest
        @DisplayName("null and empty names are handled explicitly")
        @NullAndEmptySource
        @ValueSource(strings = { " \t\n" })
        void handlesNullAndEmptyNames(String name) throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Simple base class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/Base.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /** Simple base class to verify that we handle generics correctly. */
    @GwtCompatible
    @NullUnmarked
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top