0

每当我调用具有太多参数并且行超出边距的方法时,我需要将每个参数放在单独的行上。

我的设置: 我的设置

原始代码:

return getSubscriptionList(contractNumber, objects, acceptLanguage, userNumber, bankSystem, groupIdentification).stream()
        .map(subscription -> createSubscriptionListItem(subscription,accountsFilterItems))
        .collect(Collectors.toList());

重新格式化后(这完全改变了我想要的):

return getSubscriptionList(
        contractNumber,
        objects,
        acceptLanguage,
        userNumber,
        bankSystem,
        groupIdentification
).stream()
        .map(subscription -> createSubscriptionListItem(subscription, accountsFilterItems))
        .collect(Collectors.toList());

重新格式化已经重新格式化的代码后:

return getSubscriptionList(contractNumber,
        objects,
        acceptLanguage,
        userNumber,
        bankSystem,
        groupIdentification
).stream()
        .map(subscription -> createSubscriptionListItem(subscription, accountsFilterItems))
        .collect(Collectors.toList());

为什么它第二次改变格式,我该如何改变我的设置来修复它?

链接到设置 XML 导出

4

0 回答 0