Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 411 for Annotation (0.16 sec)

  1. mockwebserver-junit4/README.md

    Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:
    
    ```
    @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
    ```
    
    The `serverRule` field has a `server` field. It is an instance of `MockWebServer`. That instance
    will be shut down automatically after the test runs.
    
    For Kotlin, the `@JvmField` annotation is also necessary:
    
    ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 707 bytes
    - Viewed (1)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

            get() = ctAnnotation<Metadata>()?.let { annotation ->
                Metadata(
                    kind = annotation.getMemberValue("k")?.intValue ?: 1,
                    metadataVersion = annotation.getMemberValue("mv")?.intArrayValue ?: IntArray(0),
                    data1 = annotation.getMemberValue("d1")?.stringArrayValue ?: arrayOf(),
                    data2 = annotation.getMemberValue("d2")?.stringArrayValue ?: arrayOf(),
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 07 08:20:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  3. mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt

     *
     * In Java JUnit 4 tests (ie. tests annotated `@org.junit.Test`), use this by defining a field with
     * the `@Rule` annotation:
     *
     * ```java
     * @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
     * ```
     *
     * For Kotlin the `@JvmField` annotation is also necessary:
     *
     * ```kotlin
     * @JvmField @Rule val serverRule = MockWebServerRule()
     * ```
     */
    @ExperimentalOkHttpApi
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.8K bytes
    - Viewed (1)
  4. WORKSPACE

        ignore_root_user_error = True,
        python_version = TF_PYTHON_VERSION,
    )
    
    load("@python//:defs.bzl", "interpreter")
    load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse")
    
    NUMPY_ANNOTATIONS = {
        "numpy": package_annotation(
            additive_build_content = """\
    filegroup(
        name = "includes",
        srcs = glob(["site-packages/numpy/core/include/**/*.h"]),
    )
    cc_library(
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Apr 05 22:27:48 GMT 2024
    - 3K bytes
    - Viewed (2)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/JavassistExtensions.kt

    import javassist.bytecode.annotation.AnnotationMemberValue
    import javassist.bytecode.annotation.ArrayMemberValue
    import javassist.bytecode.annotation.BooleanMemberValue
    import javassist.bytecode.annotation.ByteMemberValue
    import javassist.bytecode.annotation.CharMemberValue
    import javassist.bytecode.annotation.ClassMemberValue
    import javassist.bytecode.annotation.DoubleMemberValue
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForType.kt

        val annotations = custom.annotations.ifEmpty { return emptyList() }
    
        for (annotation in annotations) {
            val containerSymbol = (annotation as? FirAnnotationCall)?.containingDeclarationSymbol ?: continue
            when (phase) {
                FirResolvePhase.TYPES -> resolveAnnotationsWithClassIds(containerSymbol)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt

    import android.net.DnsResolver
    import android.net.Network
    import android.os.CancellationSignal
    import java.net.InetAddress
    import java.util.concurrent.Executor
    import org.robolectric.annotation.Implementation
    import org.robolectric.annotation.Implements
    import org.robolectric.shadow.api.Shadow
    
    @Implements(DnsResolver::class)
    class ShadowDnsResolver {
      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 22 20:07:09 GMT 2024
    - 1.7K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/SuppressSignatureCheck.kt

     */
    package okhttp3.internal
    
    import java.lang.annotation.Documented
    import kotlin.annotation.AnnotationRetention.BINARY
    import kotlin.annotation.AnnotationTarget.CLASS
    import kotlin.annotation.AnnotationTarget.CONSTRUCTOR
    import kotlin.annotation.AnnotationTarget.FUNCTION
    
    @Retention(BINARY)
    @Documented
    @Target(CONSTRUCTOR, CLASS, FUNCTION)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 990 bytes
    - Viewed (0)
  9. ChangeLog.md

    - [`KT-23861`](https://youtrack.jetbrains.com/issue/KT-23861) Expect annotation should not be applicable wider than the actual one
    - [`KT-59466`](https://youtrack.jetbrains.com/issue/KT-59466) K2: build kotlinx-benchmark
    - [`KT-60830`](https://youtrack.jetbrains.com/issue/KT-60830) KMP, K2: expect actual annotation IR checker doesn't unwrap actual typealiases to annotations
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                        "kotlin/com/example/Source.kt",
                        """
                        package com.example
    
                        import org.gradle.api.Incubating
                        import javax.annotation.Nullable
    
                        $v1
                        """
                    )
                },
                v2 = {
                    withFile(
                        "kotlin/com/example/Source.kt",
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
Back to top