1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="IllegalToken"/> 5 </module> 6 </module> 7 */ 8 package com.puppycrawl.tools.checkstyle.checks.coding.illegaltoken; 9 10 // xdoc section -- start 11 class Example1 { 12 void InvalidExample() { 13 outer: // violation, 'Using 'outer:' is not allowed' 14 for (int i = 0; i < 5; i++) { 15 if (i == 1) { 16 break outer; 17 } 18 } 19 } 20 } 21 // xdoc section -- end