aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java291
1 files changed, 291 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java
new file mode 100644
index 000000000..3504c266d
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderCorrect.java
@@ -0,0 +1,291 @@
+package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder;
+
+import java.io.Serializable;
+
+/**
+ * Some javadoc.
+ *
+ * @author max
+ * @version 1.0
+ * @see Some javadoc.
+ * @since Some javadoc.
+ * @deprecated Some javadoc.
+ */
+class WithAnnotations implements Serializable
+{
+
+ /**
+ * The client's first name.
+ * @serial
+ */
+ private String fFirstName;
+
+ /**
+ * The client's first name.
+ * @serial
+ */
+ private String sSecondName;
+
+ /**
+ * The client's first name.
+ * @serialField
+ */
+ private String tThirdName;
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @serialData Some javadoc.
+ * @deprecated Some text.
+ */
+ String method(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @serialData Some javadoc.
+ */
+ String method1(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @throws Exception Some text.
+ */
+ void method2(String aString) throws Exception {}
+
+ /**
+ * Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ void method3() throws Exception {}
+
+ /**
+ * Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ */
+ String method4() throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @serialData Some javadoc.
+ * @deprecated Some text.
+ */
+ String method5(String aString)
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @param aInt Some text.
+ * @param aBoolean Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ String method6(String aString, int aInt, boolean aBoolean) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ *
+ * @author max
+ * @version 1.0
+ * @since Some javadoc.
+ */
+ class InnerClassWithAnnotations
+ {
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ String method(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @serialData Some javadoc.
+ */
+ String method1(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @throws Exception Some text.
+ */
+ void method2(String aString) throws Exception {}
+
+ /**
+ * Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ void method3() throws Exception {}
+
+ /**
+ * Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @serialData Some javadoc.
+ */
+ String method4() throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @serialData Some javadoc.
+ * @deprecated Some text.
+ */
+ String method5(String aString)
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @param aInt Some text.
+ * @param aBoolean Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ String method6(String aString, int aInt, boolean aBoolean) throws Exception
+ {
+ return "null";
+ }
+ }
+
+ InnerClassWithAnnotations anon = new InnerClassWithAnnotations()
+ {
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ String method(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ */
+ String method1(String aString) throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @throws Exception Some text.
+ * @serialData Some javadoc.
+ */
+ void method2(String aString) throws Exception {}
+
+ /**
+ * Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ void method3() throws Exception {}
+
+ /**
+ * Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ */
+ String method4() throws Exception
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @return Some text.
+ * @deprecated Some text.
+ */
+ String method5(String aString)
+ {
+ return "null";
+ }
+
+ /**
+ * Some text.
+ * @param aString Some text.
+ * @param aInt Some text.
+ * @param aBoolean Some text.
+ * @return Some text.
+ * @throws Exception Some text.
+ * @deprecated Some text.
+ */
+ String method6(String aString, int aInt, boolean aBoolean) throws Exception
+ {
+ return "null";
+ }
+ };
+}
+
+/**
+ * Some javadoc.
+ *
+ * @author max
+ * @version 1.0
+ * @see Some javadoc.
+ * @since Some javadoc.
+ * @deprecated Some javadoc.
+ */
+enum Foo3 {}
+
+/**
+ * Some javadoc.
+ *
+ * @author max
+ * @version 1.0
+ * @see Some javadoc.
+ * @since Some javadoc.
+ * @deprecated Some javadoc.
+ */
+interface FooIn3 {}