1 /* 2 AtclauseOrder 3 violateExecutionOnNonTightHtml = (default)false 4 target = (default)CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, \ 5 CTOR_DEF, VARIABLE_DEF, RECORD_DEF, COMPACT_CTOR_DEF 6 tagOrder = (default)@author, @deprecated, @exception, @param, @return, \ 7 @see, @serial, @serialData, @serialField, @since, @throws, @version 8 9 10 */ 11 12 package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder; 13 /** Javadoc for import */ 14 import java.io.Serializable; 15 16 /** 17 * Some javadoc. 18 * 19 * @since Some javadoc. 20 * @version 1.0 // violation 21 * @deprecated Some javadoc. 22 * @see Some javadoc. // violation 23 * @author max // violation 24 */ 25 class InputAtclauseOrderIncorrect2 implements Serializable 26 { 27 /** 28 * Some javadoc. 29 * 30 * @version 1.0 31 * @since Some javadoc. 32 * @serialData Some javadoc. 33 * @author max // violation 34 */ 35 class InnerClassWithAnnotations2 36 { 37 /** 38 * Some text. 39 * @return Some text. 40 * @deprecated Some text. 41 * @param aString Some text. // violation 42 * @throws Exception Some text. // violation 43 */ 44 String method(String aString) throws Exception 45 { 46 return "null"; 47 } 48 49 /** 50 * Some text. 51 * @throws Exception Some text. 52 * @return Some text. // violation 53 * @param aString Some text. // violation 54 */ 55 String method1(String aString) throws Exception 56 { 57 return "null"; 58 } 59 60 /** 61 * Some text. 62 * @serialData Some javadoc. 63 * @param aString Some text. // violation 64 * @throws Exception Some text. // violation 65 */ 66 void method2(String aString) throws Exception {} 67 } 68 69 InnerClassWithAnnotations2 anon = new InnerClassWithAnnotations2() 70 { 71 /** 72 * Some text. 73 * @throws Exception Some text. 74 * @param aString Some text. // violation 75 * @serialData Some javadoc. 76 * @deprecated Some text. 77 * @return Some text. // violation 78 */ 79 String method(String aString) throws Exception 80 { 81 return "null"; 82 } 83 84 /** 85 * Some text. 86 * @param aString Some text. 87 * @throws Exception Some text. 88 * @return Some text. // violation 89 */ 90 String method1(String aString) throws Exception 91 { 92 return "null"; 93 } 94 95 /** 96 * Some text. 97 * @throws Exception Some text. 98 * @param aString Some text. // violation 99 */ 100 void method2(String aString) throws Exception {} 101 }; 102 }