-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
In methods annotated with @select, when using STREAM or COLLECT options, parameters of type Function, Collector, or their subtypes are currently being reported as unused parameters, even though they should not be considered an error if they are not used in the SQL statement.
To Reproduce
@Select(strategy = SelectType.COLLECT)
@Sql("select * from emp where salary > /* salary */0")
Emp selectHogeCollector(BigDecimal salary ,HogeCollector collector);
public class HogeCollector implements Collector<String, String, String> {
// overrides
}Expected behavior
Parameters of type Function, Collector, or their subtypes should be excluded from unused parameter error checks when STREAM or COLLECT options are specified on @select methods, even if those parameters are not referenced in the SQL.
Screenshots
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
