apache / apache/wayang

Unused parameter in function ProjectionDescriptor.createPojoJavaImplementation()

Open
#732 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
274
Forks
140
Avg merge
5d 16h
Merged PRs (30d)
4

Description

The current function is as follows; `inputType` is unused.
```
private static FunctionDescriptor.SerializableFunction createPojoJavaImplementation(
final String[] fieldNames, final BasicDataUnitType 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);
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.