- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for getWrapperTypeForPrimitiveType (0.47 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/model/DefaultObjectFactory.java
return Cast.uncheckedNonnullCast(mapProperty(JavaReflectionUtil.getWrapperTypeForPrimitiveType(keyType), valueType)); } if (valueType.isPrimitive()) { // Kotlin passes these types for its own basic types return Cast.uncheckedNonnullCast(mapProperty(keyType, JavaReflectionUtil.getWrapperTypeForPrimitiveType(valueType))); } return propertyFactory.mapProperty(keyType, valueType);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 14 18:56:03 UTC 2023 - 9.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/DirectInstantiator.java
if (param == null) { continue; } Class<?> pType = param.getClass(); if (pType.isPrimitive()) { pType = JavaReflectionUtil.getWrapperTypeForPrimitiveType(pType); } result[i] = pType; } return result; } @VisibleForTesting public static class ConstructorCache extends ReflectionCache<CachedConstructor> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiator.java
if (targetType.isPrimitive()) { if (currentParameter == null) { nullPrimitiveType(i, targetType); } targetType = JavaReflectionUtil.getWrapperTypeForPrimitiveType(targetType); } else if (currentParameter == null) { // Null is ok if the ConstructorSelector says it's ok continue; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 9.5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaReflectionUtil.java
import org.gradle.internal.UncheckedException; import java.lang.reflect.Constructor; import java.lang.reflect.ParameterizedType; public class JavaReflectionUtil { public static Class<?> getWrapperTypeForPrimitiveType(Class<?> type) { if (type == Character.TYPE) { return Character.class; } else if (type == Boolean.TYPE) { return Boolean.class; } else if (type == Long.TYPE) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/MethodVisitorScope.java
import org.objectweb.asm.Type; import java.util.List; import static org.gradle.internal.classanalysis.AsmConstants.ASM_LEVEL; import static org.gradle.internal.reflect.JavaReflectionUtil.getWrapperTypeForPrimitiveType; import static org.objectweb.asm.Opcodes.AALOAD; import static org.objectweb.asm.Opcodes.AASTORE; import static org.objectweb.asm.Opcodes.ACONST_NULL; import static org.objectweb.asm.Opcodes.ALOAD;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 15:31:29 UTC 2024 - 12.4K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyReader.kt
} } } private fun isAssignableTo(type: Class<*>, value: Any?) = type.isInstance(value) || type.isPrimitive && JavaReflectionUtil.getWrapperTypeForPrimitiveType(type).isInstance(value)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGListenerAdapterFactory.java
Class<?> boxedReturnType = realReturnType; if (!realReturnType.equals(void.class) && realReturnType.isPrimitive()) { boxedReturnType = JavaReflectionUtil.getWrapperTypeForPrimitiveType(realReturnType); } if (method.getName().equals("equals") && args != null && args.length == 1) { return proxyEquals(proxy, args[0]); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ParamsMatchingConstructorSelector.java
Class<?> toType = parameterTypes[toParam]; if (toType.isPrimitive()) { toType = JavaReflectionUtil.getWrapperTypeForPrimitiveType(toType); } if (toType.isInstance(param)) { break; } toParam++; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 6.2K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/annotations/InputPropertyAnnotationHandler.java
.severity(Severity.ERROR) .solution("Remove the @Optional annotation") .solution("Use the " + JavaReflectionUtil.getWrapperTypeForPrimitiveType(valueType).getName() + " type instead") ); } } private static final String INCORRECT_USE_OF_INPUT_ANNOTATION = "INCORRECT_USE_OF_INPUT_ANNOTATION";
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:33 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageChecker.groovy
this.primitiveType = primitiveType this } Class<?> getWrapperType() { JavaReflectionUtil.getWrapperTypeForPrimitiveType(primitiveType) } } static class InvalidUseOfCacheable extends ValidationMessageDisplayConfiguration<InvalidUseOfCacheable> { String invalidAnnotation
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 11:49:03 UTC 2024 - 42.1K bytes - Viewed (0)