Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for indexOfFirst (0.06 seconds)

  1. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

            val lines = buildFile.readText().lines()
    
            val start = lines.indexOfFirst {
                Regex("\\s+computedRuntimes\\s+\\{").matches(it)
            }
            if (start == -1) {
                return BuildFileMutation.Failure("Missing computedRuntimes block for $projectPath: ${buildFile.asClickableFileUrl()}")
            }
    
            val end = lines.indexOfFirst(start + 1) {
                Regex("\\s+}").matches(it)
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  2. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratorTask.kt

                val content = markdownFile.readText().lines()
                val markerPos = content.indexOfFirst { it.contains(markerComment) }
                require(markerPos >= 0) { "Could not locate the generated diagram in $markdownFile" }
                val endPos = content.subList(markerPos, content.size).indexOfFirst { it.contains(endDiagram) && !it.contains(startDiagram) }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  3. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

            unknownSubprojects: List<GradleSubproject>,
        ): MutableList<BuildTypeBucket> =
            buckets.toMutableList().apply {
                val firstAvailableBucketIndex =
                    indexOfFirst {
                        it is SmallSubprojectBucket &&
                            (
                                it.parallelizationMethod !is ParallelizationMethod.TeamCityParallelTests ||
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Feb 12 14:43:33 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

       * should close.
       */
      internal fun releaseConnectionNoEvents(): Socket? {
        val connection = this.connection!!
        connection.assertLockHeld()
    
        val calls = connection.calls
        val index = calls.indexOfFirst { it.get() == this@RealCall }
        check(index != -1)
    
        calls.removeAt(index)
        this.connection = null
    
        if (calls.isEmpty()) {
          connection.idleAtNs = System.nanoTime()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 19.5K bytes
    - Click Count (0)
Back to Top