Skip to content

#330 #336 Use streaming for CifCollectUtils

Albert Hofkamp requested to merge 330-stream-collecting into develop

Looks pretty slick, one formatting problem though.

Formatter says (around line 57)

    public static void collectEvents(ComplexComponent comp, Collection<Event> events) {
                .forEach(cc ->
                {  // <-- and checkStyle complains "Block start curly brace '{' should be on previous line."
                    cc.getDeclarations().stream().filter(decl -> decl instanceof Event)
                            .forEach(decl -> events.add((Event)decl));

Closes #330 (closed) #336 (closed)

Edited by Dennis Hendriks

Merge request reports