Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for getOrNull (0.06 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/RestTestBasePlugin.java

        }
    
        @Nullable
        private String systemProperty(String propName) {
            return providerFactory.systemProperty(propName).forUseAtConfigurationTime().getOrNull();
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Aug 05 18:56:52 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

        )
      }
    }
    
    // Applying this stuff, particularly the idea-ext plugin, has a cost so avoid it unless we're running in the IDE
    if (providers.systemProperty('idea.active').forUseAtConfigurationTime().getOrNull() == 'true') {
      project.apply(plugin: org.jetbrains.gradle.ext.IdeaExtPlugin)
    
      tasks.register('configureIdeaGradleJvm') {
        group = 'ide'
        description = 'Configures the appropriate JVM for Gradle'
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 24 19:34:12 GMT 2021
    - 8.8K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

    internal const val HEADER_LIMIT = 256 * 1024L
    
    internal fun Headers.commonName(index: Int): String = namesAndValues.getOrNull(index * 2) ?: throw IndexOutOfBoundsException("name[$index]")
    
    internal fun Headers.commonValue(index: Int): String =
      namesAndValues.getOrNull(index * 2 + 1) ?: throw IndexOutOfBoundsException("value[$index]")
    
    internal fun Headers.commonValues(name: String): List<String> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 6K bytes
    - Click Count (0)
  4. build-logic/src/main/kotlin/BndBuildAction.kt

        val projectDir = layout.projectDirectory.asFile
    
        val gradleProperties = Properties()
        properties.get().forEach { (k, v) ->
          if (v is Provider<*>) {
            val value = v.getOrNull()
            if (value != null) gradleProperties[k] = value
          } else {
            gradleProperties[k] = v
          }
        }
    
        // Set default values if not present
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  5. okhttp/build.gradle.kts

      // Note that module checking only works on JDK 9+,
      // because the JDK built-in base modules are not available in earlier versions.
      val javaVersion = compileKotlinTask.kotlinJavaToolchain.javaVersion.getOrNull()
      when {
        javaVersion?.isJava9Compatible == true -> {
          logger.info("Module-info checking is enabled; $compileKotlinTask is compiled using Java $javaVersion")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 22:16:39 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top