1 /* 2 DesignForExtension 3 ignoredAnnotations = Deprecated 4 requiredJavadocPhrase = (default).* 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.design.designforextension; 10 11 public class InputDesignForExtensionNativeMethods { 12 13 // has a potentially complex implementation in native code. 14 // We can't check that, so to be safe DesignForExtension requires 15 // native methods to also be final 16 public native void foo1(); // violation 17 18 public static native void foo2(); 19 20 protected static native void foo3(); 21 22 protected static final native void foo4(); 23 24 /** 25 * Javadoc for native method. 26 */ 27 public native void foo5(); 28 29 /* 30 * Violation. Block-commend doc for native method. 31 */ 32 public native void foo6(); // violation 33 34 @Deprecated 35 public native void foo7(); 36 }