Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setConstant (0.14 sec)

  1. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
          Headers.Builder()
            .add("Test-Instant", Instant.ofEpochMilli(0L))
            .set("Test-Instant", expected)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        }
        if (initializer != null) {
            val bindingContext = analysisContext.analyze(initializer)
            val constantValue = ConstantExpressionEvaluator.getConstant(initializer, bindingContext)
            if (constantValue != null) {
                val evaluated = constantValue.toConstantValue(propertyDescriptor?.type ?: TypeUtils.NO_EXPECTED_TYPE).toKtConstantValue()
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
Back to top