Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mapstruct/mapstruct
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: mapstruct/mapstruct
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1610
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 9 files changed
  • 1 contributor

Commits on Sep 20, 2024

  1. highly WIP

    thunderhook committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    30651b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. highly WIP

    thunderhook committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    d9566ba View commit details
    Browse the repository at this point in the history
  2. 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]);
    }
    ```
    thunderhook committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    728b42a View commit details
    Browse the repository at this point in the history
Loading