Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 732 for require (0.19 sec)

  1. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

                    usedTypes.clear();
                }
            }
        }
    
        @Override
        public Optional<Type> lookup(String id) {
            return Optional.of(require(id));
        }
    
        @Override
        @Nonnull
        public Type require(String id) {
            nonNull(id, "id");
            return usedTypes.computeIfAbsent(id, i -> {
                Type type = types.get(id);
                if (type == null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

      }
    
    private fun checkSupportResponse(
      name: String,
      response: Response?,
    ) {
      response?.apply {
        require(networkResponse == null) { "$name.networkResponse != null" }
        require(cacheResponse == null) { "$name.cacheResponse != null" }
        require(priorResponse == null) { "$name.priorResponse != null" }
      }
    }
    
    fun Response.Builder.commonPriorResponse(priorResponse: Response?) =
      apply {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          // seconds are not supported by this syntax.
          require(year >= 1601)
          require(month != -1)
          require(dayOfMonth in 1..31)
          require(hour in 0..23)
          require(minute in 0..59)
          require(second in 0..59)
    
          GregorianCalendar(UTC).apply {
            isLenient = false
            set(Calendar.YEAR, year)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

        }
    
        override fun getFileScope(fileSymbol: KtFileSymbol): KtScope {
            require(fileSymbol is KtFe10FileSymbol)
            return KtFe10FileScope(fileSymbol.psi, analysisContext, token)
        }
    
        override fun getPackageScope(packageSymbol: KtPackageSymbol): KtScope {
            require(packageSymbol is KtFe10PackageSymbol)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

          apply {
            val maxAgeSeconds = maxAge.inWholeSeconds
            require(maxAgeSeconds >= 0) { "maxAge < 0: $maxAgeSeconds" }
            this.maxAgeSeconds = maxAgeSeconds.commonClampToInt()
          }
    
        fun maxStale(maxStale: Duration) =
          apply {
            val maxStaleSeconds = maxStale.inWholeSeconds
            require(maxStaleSeconds >= 0) { "maxStale < 0: $maxStaleSeconds" }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  6. .cm/plugins/filters/byCodeowner/index.js

     * @returns {Map} - Map from owner name to list of files they own
     * @example {{ files | byCodeowner(pr, env.CODEOWNERS_TOKEN, '.github/CODEOWNERS') }}
     **/
    
    const { Octokit } = require("@octokit/rest");
    const ignore = require('./ignore/index.js');
    
    async function loadCodeownersFile(owner, repo, auth, pathToCodeOwners) {
        const octokit = new Octokit({
            request: { fetch },
            auth,
        });
    
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

            return getService(TypeRegistry.class).require(id);
        }
    
        @Override
        public Language requireLanguage(String id) {
            return getService(LanguageRegistry.class).require(id);
        }
    
        @Override
        public Packaging requirePackaging(String id) {
            return getService(PackagingRegistry.class).require(id);
        }
    
        @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:55:57 GMT 2024
    - 27.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

      override fun isCanceled() = canceled
    
      override fun plan(): FakePlan {
        // Return deferred plans preferentially. These don't require addPlan().
        if (deferredPlans.isNotEmpty()) return deferredPlans.removeFirst() as FakePlan
    
        if (nextPlanIndex >= plans.size && autoGeneratePlans) addPlan()
    
        require(nextPlanIndex < plans.size) {
          "not enough plans! call addPlan() or set autoGeneratePlans=true in the test to set this up"
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. build-logic-commons/code-quality-rules/src/main/resources/checkstyle/suppressions.xml

        <!-- These packages are duplicated in ide-native from ide, don't require a package-info.java in each place -->
        <suppress checks="JavadocPackage"
                  files=".*[/\\]ide-native[/\\]src[/\\]main[/\\]java[/\\]org[/\\]gradle[/\\]plugins[/\\]ide[/\\]api[/\\][^/\\]+"/>
    
        <!-- These packages are duplicated in platform-native from language-native, don't require a package-info.java in each place -->
        <suppress checks="JavadocPackage"
    XML
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 11 10:51:28 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        flags: Int,
      ) {
        if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) {
          logger.fine(frameLog(false, streamId, length, type, flags))
        }
        require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" }
        require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" }
        sink.writeMedium(length)
        sink.writeByte(type and 0xff)
        sink.writeByte(flags and 0xff)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top