diff --git a/core/trino-main/src/main/java/io/trino/sql/gen/BytecodeUtils.java b/core/trino-main/src/main/java/io/trino/sql/gen/BytecodeUtils.java index 38a6b7512f5a..e3d10fef72f7 100644 --- a/core/trino-main/src/main/java/io/trino/sql/gen/BytecodeUtils.java +++ b/core/trino-main/src/main/java/io/trino/sql/gen/BytecodeUtils.java @@ -125,25 +125,6 @@ public static BytecodeNode handleNullValue( .ifTrue(isNull); } - public static BytecodeNode boxPrimitive(Class type) - { - BytecodeBlock block = new BytecodeBlock().comment("box primitive"); - if (type == long.class) { - return block.invokeStatic(Long.class, "valueOf", Long.class, long.class); - } - if (type == double.class) { - return block.invokeStatic(Double.class, "valueOf", Double.class, double.class); - } - if (type == boolean.class) { - return block.invokeStatic(Boolean.class, "valueOf", Boolean.class, boolean.class); - } - if (type.isPrimitive()) { - throw new UnsupportedOperationException("not yet implemented: " + type); - } - - return NOP; - } - public static BytecodeNode unboxPrimitive(Class unboxedType) { BytecodeBlock block = new BytecodeBlock().comment("unbox primitive"); @@ -354,7 +335,7 @@ else if (type == ConnectorSession.class) { lambdaArgumentIndex++; break; default: - throw new UnsupportedOperationException(format("Unsupported argument conventsion type: %s", invocationConvention.getArgumentConvention(realParameterIndex))); + throw new UnsupportedOperationException(format("Unsupported argument convention type: %s", invocationConvention.getArgumentConvention(realParameterIndex))); } realParameterIndex++; }