Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for badtype (0.18 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt

            private
            val propertyOriginalTypes = mutableMapOf<KClass<*>, MutableMap<String, KType>>()
    
            private
            val claimedFunctions = mutableMapOf<KClass<*>, MutableSet<KFunction<*>>>()
    
            fun addType(kClass: KClass<*>) {
                properties.getOrPut(kClass) { mutableMapOf() }
                propertyOriginalTypes.getOrPut(kClass) { mutableMapOf() }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    func buildTestEnv() (*cel.Env, error) {
    	fooType := common.SchemaDeclType(simpleMapSchema("foo", spec.StringProperty()), true).MaybeAssignTypeName("fooType")
    	barType := common.SchemaDeclType(simpleMapSchema("bar", spec.Int64Property()), true).MaybeAssignTypeName("barType")
    
    	env, err := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true).Extend(
    		environment.VersionedOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

                val beanType = value.javaClass
                writeClass(beanType)
                val record = recordWritingOf(beanType, value)
                record.run { playback() }
            }
        }
    
        private
        fun recordWritingOf(beanType: Class<Externalizable>, value: Externalizable): RecordingObjectOutputStream =
            RecordingObjectOutputStream(beanType, value).also { recordingObjectOutputStream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt

        fun constructorForSerialization(beanType: Class<*>): Constructor<out Any> {
            return cache.get(beanType) { -> createConstructor(beanType) }
        }
    
        private
        fun createConstructor(beanType: Class<*>): Constructor<out Any> {
            // Initialize the super types of the bean type, as this does not seem to happen via the generated constructors
            maybeInit(beanType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BeanCodec.kt

            encodePreservingIdentityOf(value) {
                val beanType = GeneratedSubclasses.unpackType(value)
                withBeanTrace(beanType) {
                    writeBeanOf(beanType, value)
                }
            }
        }
    
        override suspend fun ReadContext.decode(): Any =
            decodePreservingIdentity { id ->
                val beanType = readClass()
                val generated = readBoolean()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanSchema.kt

    )
    
    
    internal
    fun relevantStateOf(beanType: Class<*>): List<RelevantField> =
        when (IConventionAware::class.java.isAssignableFrom(beanType)) {
            true -> applyConventionMappingTo(beanType, relevantFieldsOf(beanType))
            else -> relevantFieldsOf(beanType)
        }
    
    
    private
    fun relevantFieldsOf(beanType: Class<*>) =
        relevantTypeHierarchyOf(beanType)
            .flatMap(Class<*>::relevantFields)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheUnsupportedTypesIntegrationTest.groovy

        }
    
        def "reports when task field is declared with type #baseType"() {
            buildFile << """
                plugins { id "java" }
    
                class SomeBean {
                    private ${baseType.name} badField
                }
    
                class SomeTask extends DefaultTask {
                    private final ${baseType.name} badField
                    private final bean = new SomeBean()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt

        val beanType = value.javaClass
        withBeanTrace(beanType) {
            writeClass(beanType)
            beanStateWriterFor(beanType).run {
                writeStateOf(value)
            }
        }
    }
    
    
    suspend fun ReadContext.decodeBean(): Any {
        val beanType = readClass()
        return withBeanTrace(beanType) {
            beanStateReaderFor(beanType).run {
                newBean(false).also {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Logging.kt

    }
    
    
    fun IsolateContext.logUnsupported(
        action: String,
        baseType: KClass<*>,
        documentationSection: DocumentationSection = RequirementsDisallowedTypes,
        appendix: StructuredMessageBuilder = {}
    ) {
        logUnsupported(action, documentationSection, appendix) {
            text(" object of type ")
            reference(baseType)
        }
    }
    
    
    fun IsolateContext.logUnsupported(
        action: String,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/PropertyTraceTest.kt

        @Test
        fun `field of bean found in input property of task`() {
    
            val beanType = PropertyTraceTest::class.java
            val taskType = Task::class.java
    
            assertThat(
                PropertyTrace.Property(
                    PropertyKind.Field,
                    "f",
                    PropertyTrace.Bean(
                        beanType,
                        PropertyTrace.Property(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top