Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 249 for Closest (0.26 sec)

  1. subprojects/core/src/test/groovy/org/gradle/invocation/DefaultGradleSpec.groovy

            gradle.settings == settings
        }
    
        def "closes settings when replaced"() {
            def state1 = Mock(SettingsState)
            def state2 = Stub(SettingsState)
    
            given:
            gradle.attachSettings(state1)
    
            when:
            gradle.attachSettings(state2)
    
            then:
            1 * state1.close()
        }
    
        def "closes settings when discarded"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    }
    
    /** Returns an immutable list containing [elements]. */
    @SafeVarargs
    internal fun <T> immutableListOf(vararg elements: T): List<T> {
      return Collections.unmodifiableList(listOf(*elements.clone()))
    }
    
    /** Closes this, ignoring any checked exceptions. */
    internal fun Socket.closeQuietly() {
      try {
        close()
      } catch (e: AssertionError) {
        throw e
      } catch (rethrown: RuntimeException) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/net/smtp/smtp.go

    	if err != nil {
    		text.Close()
    		return nil, err
    	}
    	c := &Client{Text: text, conn: conn, serverName: host, localName: "localhost"}
    	_, c.tls = conn.(*tls.Conn)
    	return c, nil
    }
    
    // Close closes the connection.
    func (c *Client) Close() error {
    	return c.Text.Close()
    }
    
    // hello runs a hello exchange if needed.
    func (c *Client) hello() error {
    	if !c.didHello {
    		c.didHello = true
    		err := c.ehlo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/Closer.java

    import java.util.Deque;
    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            fails("check", "--continue")
            failure.assertHasCause("Invalid rulesMinimumPriority '11'.  Valid range 1 (highest) to 5 (lowest).")
            // pmdMain and pmdTest
            failure.assertHasFailures(2)
        }
    
        def "gets reasonable message when priority level threshold is out of range from task"() {
            goodCode()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

    import java.util.Deque;
    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go

    		{
    			example: hex("3bffffffffffffffff"),
    			reject:  "-2^64-1 overflows int64 and falling back to float64 (as with JSON) loses distinction between float and integer",
    		},
    		{
    			example: hex("c349010000000000000000"),
    			reject:  "-18446744073709551617 overflows int64 and falling back to float64 (as with JSON) loses distinction between float and integer",
    			fixme:   "decoding negative bigint to interface{} must not produce math/big.Int",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 18:59:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/xml/SimpleXmlWriterSpec.groovy

            when:
            writer.endCDATA()
    
            then:
            IllegalStateException e = thrown()
            e.message == 'Cannot end CDATA node, as not currently in a CDATA node.'
        }
    
        def "closes tags"() {
            when:
            writer.startElement("root")
            action.call(writer)
            writer.endElement()
    
            then:
            sw.toString().contains("<root>") //is closed with '>'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 14.1K bytes
    - Viewed (0)
  9. src/net/http/httputil/persist.go

    func (sc *ServerConn) Hijack() (net.Conn, *bufio.Reader) {
    	sc.mu.Lock()
    	defer sc.mu.Unlock()
    	c := sc.c
    	r := sc.r
    	sc.c = nil
    	sc.r = nil
    	return c, r
    }
    
    // Close calls [ServerConn.Hijack] and then also closes the underlying connection.
    func (sc *ServerConn) Close() error {
    	c, _ := sc.Hijack()
    	if c != nil {
    		return c.Close()
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Response.kt

     * value that may be consumed only once and then closed. All other properties are immutable.
     *
     * This class implements [Closeable]. Closing it simply closes its response body. See
     * [ResponseBody] for an explanation and examples.
     */
    class Response internal constructor(
      /**
       * The request that initiated this HTTP response. This is not necessarily the same request issued
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top