Java 检查样式报告的缩进问题

Java 检查样式报告的缩进问题,java,indentation,checkstyle,Java,Indentation,Checkstyle,Checkstyle只对下面的代码段抱怨缩进不正确。我试图通过intellij或手动格式化代码,但没有一个成功。当我用错误消息修复这个问题时,缩进级别仍然不正确,但是数字改变了 Map<MessageStatusAndErrorCode, Integer> result = MESSAGES_POLLER_EXECUTOR_SERVICE.invokeAll(callables).stream() .map(stringFuture -

Checkstyle只对下面的代码段抱怨缩进不正确。我试图通过intellij或手动格式化代码,但没有一个成功。当我用错误消息修复这个问题时,缩进级别仍然不正确,但是数字改变了

        Map<MessageStatusAndErrorCode, Integer> result = MESSAGES_POLLER_EXECUTOR_SERVICE.invokeAll(callables).stream()
                .map(stringFuture -> {
                    try {
                        return stringFuture.get();
                    } catch (InterruptedException | ExecutionException ex) {
                        throw new IllegalStateException(ex);
                    } 
                })
                .collect(Collectors.groupingBy(Function.identity(), reducing(0, e -> 1, Integer::sum)));
        messagesStatusCountMap.putAll(result);

try catch
逻辑移动到
static
方法,并调用static方法?@ElliottFrisch您能添加更多解释吗?
'try' have incorrect indentation level 20, expected level should be 24.
Line 132'try' child have incorrect indentation level 24, expected level should be 28.
Line 133'try rcurly' have incorrect indentation level 20, expected level should be 24.
Line 134'catch' child have incorrect indentation level 24, expected level should be 28.
Line 135'block rcurly' have incorrect indentation level 22, expected level should be 20.
Line 135'catch rcurly' have incorrect indentation level 20, expected level should be 24.