thunderhook 728b42ac25 tried to support arrays as target - stopped because of null values in target array - intermediate method used for lists and then resultList.toArray(new Employee[0]); would be nice - or somehow using a list in the forged method anyways:
```
public Employee[] mapListToArray(List<EmployeeDto> employees) {
    if (employees == null) {
        return null;
    }

    List<Employee> resultList = new ArrayList<>();
    for ( EmployeeDto employeeDto : employees ) {
        if ( countryIsNotNull( employeeDto ) ) {
            resultList.add(map(employeeDto));
        }
    }

    return resultList.toArray(new Employee[0]);
}
```
2024-09-22 23:12:33 +02:00
..
2024-09-16 08:06:43 +00:00