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 excludeClassesRegexps = (default)^$ 16 excludedPackages = (default) 17 18 19 */ 20 21 package com.puppycrawl.tools.checkstyle.checks.metrics.classfanoutcomplexity; 22 23 import java.sql.SQLException; 24 25 public class InputClassFanOutComplexityThrows { 26 // violation above 'Class Fan-Out Complexity is 2 (max allowed is 0)' 27 private static void foo1() throws RuntimeException, SQLException, OneMoreException { 28 } 29 } 30 class OneMoreException extends Exception {}