79518445

Date: 2025-03-18 19:09:12
Score: 2.5
Natty:
Report link

Probably it is not the best solution but it is compact enough, it is what I ended up writing:

    public FilteredDE map(Result re) {
        FilteredDE filteredDE = new FilteredDE();
        for (Group group : re.getGroup()) {
            for (Record record : block.getRecord()) {
                map(record, filteredDE);
            }
        }
        return filteredDE;
    }

    @BeanMapping(
            nullValuePropertyMappingStrategy= NullValuePropertyMappingStrategy.IGNORE,
            nullValueCheckStrategy=NullValueCheckStrategy.ALWAYS)
    public abstract FilteredDE map(Record re, @MappingTarget FilteredDE filt);

Is there any better please?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
Posted by: Viktor