- Sort Score
- Result 10 results
- Languages All
Results 591 - 600 of 969 for val2 (0.72 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformVersion.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.testing object PlatformVersion { val majorVersion: Int by lazy { when (val jvmSpecVersion = getJvmSpecVersion()) { "1.8" -> 8 else -> jvmSpecVersion.toInt() } } fun getJvmSpecVersion(): String = System.getProperty("java.specification.version", "unknown")Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 902 bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/model/ReleasedVersion.kt
* limitations under the License. */ package gradlebuild.buildutils.model import org.gradle.util.GradleVersion data class ReleasedVersion(private val version: String, private val buildTime: String) { fun gradleVersion() = GradleVersion.version(version)
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 842 bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
} } if (value instanceof String val) { // TODO without #, this could just be an evaluate call... int exprStartDelimiter = val.indexOf("${"); if (exprStartDelimiter >= 0) { if (exprStartDelimiter > 0) { value = val.substring(0, exprStartDelimiter) + evaluate(val.substring(exprStartDelimiter)); } else {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 24 17:29:44 UTC 2025 - 9.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt
import okhttp3.OkHttpClient import okhttp3.Request class ConfigureTimeouts { private val client: OkHttpClient = OkHttpClient .Builder() .connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build() fun run() { val request = Request .Builder()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.3K bytes - Viewed (0) -
.teamcity/src/main/kotlin/common/JvmCategory.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package common enum class JvmCategory( override val vendor: JvmVendor, override val version: JvmVersion, ) : Jvm { MIN_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_17), MAX_LTS_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_21), MAX_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_25),
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Nov 05 13:00:26 UTC 2025 - 994 bytes - Viewed (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt
open class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val client = OkHttpClient() // Ensure we are compiling against the right variant println(AndroidPlatform.isSupported) val url = "https://github.com/square/okhttp".toHttpUrl() println(url.topPrivateDomain()) client.newCall(Request(url)).enqueue(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Aug 19 08:10:39 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/UnreadableResponseBody.kt
import okhttp3.Response import okhttp3.ResponseBody import okio.Buffer import okio.Source import okio.Timeout import okio.buffer internal class UnreadableResponseBody( private val mediaType: MediaType?, private val contentLength: Long, ) : ResponseBody(), Source { override fun contentType() = mediaType override fun contentLength() = contentLength override fun source() = buffer()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 15:19:53 UTC 2025 - 1.7K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampFromBuildReceiptValueSource.kt
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 1.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/IsProbablyUtf8.kt
*/ internal fun BufferedSource.isProbablyUtf8(codePointLimit: Long = Long.MAX_VALUE): Boolean { try { val peek = peek() for (i in 0 until codePointLimit) { if (peek.exhausted()) { break } val codePoint = peek.readUtf8CodePoint() if (Character.isISOControl(codePoint) && !Character.isWhitespace(codePoint)) { return false } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Oct 06 22:47:06 UTC 2025 - 1.4K bytes - Viewed (0) -
mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt
* ``` * * For Kotlin the `@JvmField` annotation is also necessary: * * ```kotlin * @JvmField @Rule val serverRule = MockWebServerRule() * ``` */ class MockWebServerRule : ExternalResource() { val server: MockWebServer = MockWebServer() override fun before() { try { server.start() } catch (e: IOException) { throw RuntimeException(e)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jun 16 22:36:18 UTC 2025 - 1.4K bytes - Viewed (0)