1 /* 2 DescendantToken 3 limitedTokens = LITERAL_NATIVE 4 minimumDepth = (default)0 5 maximumDepth = 0 6 minimumNumber = (default)0 7 maximumNumber = 0 8 sumTokenCounts = (default)false 9 minimumMessage = (default)null 10 maximumMessage = Using ''{2}'' is not allowed. 11 tokens = LITERAL_NATIVE 12 13 14 */ 15 16 package com.puppycrawl.tools.checkstyle.checks.descendanttoken; 17 18 public class InputDescendantTokenIllegalTokens8 19 { 20 public void methodWithPreviouslyIllegalTokens() 21 { 22 int i = 0; 23 switch (i) 24 { 25 default: 26 i--; 27 i++; 28 break; 29 } 30 } 31 32 public native void nativeMethod(); // violation 'Using 'LITERAL_NATIVE' is not allowed' 33 }