Skip to content

Unused parameter in function ProjectionDescriptor.createPojoJavaImplementation() #732

@CarloMariaProietti

Description

@CarloMariaProietti

The current function is as follows; inputType is unused.

private static <Input, Output> FunctionDescriptor.SerializableFunction<Input, Output> createPojoJavaImplementation(
            final String[] fieldNames, final BasicDataUnitType<Input> inputType) {
        // Get the names of the fields to be projected.
        if (fieldNames.length != 1) {
            return t -> {
                throw new IllegalStateException("The projection descriptor currently supports only a single field.");
            };
        }
        final String fieldName = fieldNames[0];
        return new PojoImplementation<>(fieldName);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions