1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="DescendantToken"> 5 <property name="tokens" value="LITERAL_THROWS"/> 6 <property name="limitedTokens" value="IDENT"/> 7 <property name="maximumNumber" value="1"/> 8 </module> 9 </module> 10 </module> 11 */ 12 package com.puppycrawl.tools.checkstyle.checks.descendanttoken; 13 14 // xdoc section -- start 15 class Example10 { 16 void testMethod1() throws ArithmeticException { 17 // ... 18 } 19 // violation below, 'Count of 2 for 'LITERAL_THROWS' descendant' 20 void testMethod2() throws ArithmeticException, ArithmeticException { 21 // ... 22 } 23 } 24 25 // xdoc section -- end