1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 2 // see https://github.com/checkstyle/checkstyle/issues/7675 //indent:0 exp:0 3 import java.util.stream.Stream; //indent:0 exp:0 4 public class InputIndentationLambda5 { //indent:0 exp:0 5 public void test(Stream<Inner<?>> stream) { //indent:3 exp:3 6 stream //indent:6 exp:6 7 .filter(ps -> ps instanceof Inner) //indent:12 exp:12 8 .map(ps -> ((Inner<?>) ps).getPropertyNames()) //indent:12 exp:12 9 .forEach(System.out::println); //indent:12 exp:12 10 } //indent:3 exp:3 11 12 private static class Inner<T> { //indent:3 exp:3 13 String[] getPropertyNames() { //indent:6 exp:6 14 return new String[] {"a", "b"}; //indent:9 exp:9 15 } //indent:6 exp:6 16 } //indent:3 exp:3 17 } //indent:0 exp:0