Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 6,553 for retain (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/cache/ModelSchemaCache.java

        @Nullable
        public <T> ModelSchema<T> get(ModelType<T> type) {
            Map<ModelType<?>, ModelSchema<?>> typeCache = cache.get(WeakClassSet.of(type));
            if (typeCache == null) {
                return null;
            } else {
                return Cast.uncheckedCast(typeCache.get(type));
            }
        }
    
        public <T> void set(ModelType<T> type, ModelSchema<T> schema) {
            WeakClassSet cacheKey = WeakClassSet.of(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          }
    
        return splitDomain(domain).asSequence().drop(firstLabelOffset).joinToString(".")
      }
    
      private fun splitDomain(domain: String): List<String> {
        val domainLabels = domain.split('.')
    
        if (domainLabels.last() == "") {
          // allow for domain name trailing dot
          return domainLabels.dropLast(1)
        }
    
        return domainLabels
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_tidy_compat.txt

    [exec:patch] cmp go.sum go.sum.tidyResult
    
    go list -m all
    cmp stdout m_all.txt
    
    go mod edit -go=1.16
    go list -m all
    cmp stdout m_all.txt
    
    
    # If we explicitly drop compatibility with 1.16, we retain fewer checksums,
    # which gives a cleaner go.sum file but causes 1.16 to fail in readonly mode.
    
    cp go.mod.orig go.mod
    go mod tidy -compat=1.17
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtilsTest.groovy

            @Incubating
            Object doSomething() { null }
        }
    
        class Child extends Base implements Serializable {
            @Nullable
            Object doSomething() { null }
        }
    
        def "overridden methods retain annotations"() {
            when:
            def methods = ModelSchemaUtils.getCandidateMethods(Child)
    
            then:
            methods.methodNames() == (["doSomething"] as Set)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        return copy(connectTimeoutMillis = checkDuration("connectTimeout", timeout.toLong(), unit))
      }
    
      override fun readTimeoutMillis(): Int = readTimeoutMillis
    
      override fun withReadTimeout(
        timeout: Int,
        unit: TimeUnit,
      ): Interceptor.Chain {
        check(exchange == null) { "Timeouts can't be adjusted in a network interceptor" }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_tidy_compat_irrelevant.txt

    go list -deps -test -f $MODFMT all
    cp stdout out-117.txt
    
    go mod edit -go=1.16
    go list -deps -test -f $MODFMT all
    cmp stdout out-117.txt
    
    
    # If we explicitly drop compatibility with 1.16, we retain fewer checksums,
    # which gives a cleaner go.sum file but causes 1.16 to fail in readonly mode.
    
    cp go.mod.orig go.mod
    go mod tidy -compat=1.17
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

        this.entries = entries;
      }
    
      @Override
      public int size() {
        return entries.size();
      }
    
      @Override
      @CheckForNull
      public V get(@CheckForNull Object key) {
        return delegateMap.get(key);
      }
    
      @Override
      ImmutableSet<Entry<K, V>> createEntrySet() {
        return new ImmutableMapEntrySet.RegularEntrySet<>(this, entries);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/os/removeall_at.go

    			err = pathErr
    		}
    		return err
    	}
    	return nil
    }
    
    func removeAllFrom(parent *File, base string) error {
    	parentFd := int(parent.Fd())
    	// Simple case: if Unlink (aka remove) works, we're done.
    	err := ignoringEINTR(func() error {
    		return unix.Unlinkat(parentFd, base, 0)
    	})
    	if err == nil || IsNotExist(err) {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. platforms/ide/problems-api/src/test/groovy/org/gradle/internal/code/DefaultUserCodeApplicationContextTest.groovy

            1 * supplier.get() >> {
                assert context.current().id == application1.id
                assert context.current().source == source
                return "result"
            }
    
            and:
            context.current() == null
        }
    
        def "can retain application instance and later run actions against it"() {
            def source = Stub(UserCodeSource)
            def action = Mock(Action)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 27 13:19:04 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/io/io.go

    // successfully reading n > 0 bytes, it returns the number of
    // bytes read. It may return the (non-nil) error from the same call
    // or return the error (and n == 0) from a subsequent call.
    // An instance of this general case is that a Reader returning
    // a non-zero number of bytes at the end of the input stream may
    // return either err == EOF or err == nil. The next Read should
    // return 0, EOF.
    //
    // Callers should always process the n > 0 bytes returned before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top