1 /*
2 ClassFanOutComplexity
3 max = 0
4 excludedClasses = (default)ArrayIndexOutOfBoundsException, ArrayList, Boolean, Byte, \
5 Character, Class, Collection, Deprecated, Deque, Double, DoubleStream, \
6 EnumSet, Exception, Float, FunctionalInterface, HashMap, HashSet, \
7 IllegalArgumentException, IllegalStateException, IndexOutOfBoundsException, \
8 IntStream, Integer, LinkedHashMap, LinkedHashSet, LinkedList, List, Long, \
9 LongStream, Map, NullPointerException, Object, Optional, OptionalDouble, \
10 OptionalInt, OptionalLong, Override, Queue, RuntimeException, SafeVarargs, \
11 SecurityException, Set, Short, SortedMap, SortedSet, Stream, String, \
12 StringBuffer, StringBuilder, SuppressWarnings, Throwable, TreeMap, TreeSet, \
13 UnsupportedOperationException, Void, boolean, byte, char, double, float, \
14 int, long, short, var, void
15 excludedPackages = (default)
16
17
18 */
19
20 package com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity;
21
22 import java.util.List;
23 import java.util.Map;
24 import java.util.ArrayList;
25 import java.io.File;
26
27 public class InputClassFanOutComplexityLambdaNew {
28 public void testMethod(Map<String, List<String>> entry) {
29 List<File> files = new ArrayList<>();
30 String string = "";
31 entry.values().stream()
32 .flatMap(List::stream)
33 .map(File::new)
34 .forEach(files::add);
35 }
36 }