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