File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
src/main/java/software/xdev/saveactions/core/service/impl Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 11package software .xdev .saveactions .core .service .impl ;
22
33import static java .util .function .Function .identity ;
4- import static java .util .stream .Collectors .toList ;
54import static java .util .stream .Collectors .toMap ;
65import static software .xdev .saveactions .model .StorageFactory .JAVA ;
76
@@ -168,8 +167,8 @@ public List<QuickList> getQuickLists(final Project project)
168167 .map (Integer ::valueOf )
169168 .map (quickListsIds ::get )
170169 .filter (Objects ::nonNull )
171- .collect ( toList () ))
172- .orElse ( new ArrayList <>() );
170+ .toList ())
171+ .orElseGet ( List :: of );
173172 }
174173
175174 protected SaveActionsService addProcessors (final Stream <Processor > processors )
Original file line number Diff line number Diff line change 2121 */
2222public final class SaveActionsDefaultService extends AbstractSaveActionsService
2323{
24-
2524 public SaveActionsDefaultService ()
2625 {
2726 super (DEFAULT );
28- addProcessors (BuildProcessor .stream ());
29- addProcessors (GlobalProcessor .stream ());
27+ this . addProcessors (BuildProcessor .stream ());
28+ this . addProcessors (GlobalProcessor .stream ());
3029 }
3130}
Original file line number Diff line number Diff line change 2222 */
2323public final class SaveActionsJavaService extends AbstractSaveActionsService
2424{
25-
2625 public SaveActionsJavaService ()
2726 {
2827 super (JAVA );
29- addProcessors (BuildProcessor .stream ());
30- addProcessors (GlobalProcessor .stream ());
31- addProcessors (JavaProcessor .stream ());
28+ this . addProcessors (BuildProcessor .stream ());
29+ this . addProcessors (GlobalProcessor .stream ());
30+ this . addProcessors (JavaProcessor .stream ());
3231 }
3332}
You can’t perform that action at this time.
0 commit comments