Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 190 for substring (0.07 seconds)

  1. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

            val subprojectName = settings.subprojects.first()
            val languageName = descriptor.language.getName().substring(0, 1).uppercase() + descriptor.language.getName().substring(1)
            val extraCompileJava = if (descriptor.language != Language.JAVA) """
         > Task :$subprojectName:compileJava NO-SOURCE
    
            """.trimIndent() else ""
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sun Dec 15 07:49:41 GMT 2024
    - 13.5K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

        // Silently replace web socket URLs with HTTP URLs.
        private fun canonicalUrl(url: String) =
          when {
            url.startsWith("ws:", ignoreCase = true) -> "http:${url.substring(3)}"
            url.startsWith("wss:", ignoreCase = true) -> "https:${url.substring(4)}"
            else -> url
          }
    
        /**
         * Sets the URL target of this request.
         *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 14.7K bytes
    - Click Count (1)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

                if (version.endsWith(SNAPSHOT)) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    
                SnapshotVersion sv = new SnapshotVersion();
                sv.setClassifier(artifact.getClassifier());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

         * Returns method parameters from method signature, e.g. "(Ljava/lang/String;I)V" -> "(Ljava/lang/String;I)"
         */
        private static String methodParametersFromSignature(CtMethod method) {
            return method.signature.substring(0, method.signature.indexOf(")") + 1)
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java

        }
    
        private MethodLinkMetaData findMethod(String method) {
            if (method.endsWith("...)")) {
                // Should reuse the link parsing stuff from JavadocLinkConverter instead
                method = method.substring(0, method.length() - 4) + "[])";
            }
    
            MethodLinkMetaData metaData = methods.get(method);
            if (metaData != null) {
                return metaData;
            }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Apr 11 11:17:34 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java

                        .setLocation(activation.getLocation("jdk")));
                return false;
            }
    
            if (jdk.startsWith("!")) {
                return !version.startsWith(jdk.substring(1));
            } else if (isRange(jdk)) {
                try {
                    return isInRange(version, getRange(jdk));
                } catch (NumberFormatException e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

            var newline = logMessage.indexOf('\n', i)
            newline = if (newline != -1) newline else length
            do {
              val end = minOf(newline, i + MAX_LOG_LENGTH)
              Log.println(logLevel, tag, logMessage.substring(i, end))
              i = end
            } while (i < newline)
            i++
          }
        }
      }
    
      private fun loggerTag(loggerName: String): String {
        // We need to handle long logger names before they hit Log.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Oct 25 11:16:17 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

            validator.validateRawModel(model, request, problems);
    
            return problems;
        }
    
        private void assertContains(String msg, String substring) {
            assertTrue(msg.contains(substring), "\"" + substring + "\" was not found in: " + msg);
        }
    
        @BeforeEach
        void setUp() throws Exception {
            validator = new DefaultModelValidator(new DefaultModelVersionProcessor());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

            while (!source.exhausted()) {
              var rule: ByteString = source.readUtf8LineStrict().toRule() ?: continue
    
              if (rule.startsWith(EXCEPTION_RULE_MARKER)) {
                rule = rule.substring(1)
                // We use '\n' for end of value.
                totalExceptionRuleBytes += rule.size + 1
                sortedExceptionRules.add(rule)
              } else {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Aug 06 05:33:11 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

        @Override
        public void startProcessChildren(Artifact artifact) {
            indent += "  ";
        }
    
        @Override
        public void endProcessChildren(Artifact artifact) {
            indent = indent.substring(2);
        }
    
        @Override
        public void includeArtifact(Artifact artifact) {
            logger.debug(indent + artifact + " (selected for " + artifact.getScope() + ")");
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top