blob: 505a3ec654dbf29b2c3831f912253fbf19d38a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
package com.puppycrawl.tools.checkstyle.checks.javadoc;
public class InputTestGenerics <E extends java.lang.Exception,
RE extends RuntimeException & java.io.Serializable>
{
/**
* @throws E in some cases
* @throws RE in some cases
*/
public void method1() throws E
{
}
/**
* RuntimeException is not declared.
*/
public void method2() throws RE
{
}
/**
* @throws E in some cases
* @throws RE in other cases
*/
public void method3() throws E, RE
{
}
/**
* @throws RE in some cases
* @throws NPE in some other cases
*/
public <NPE extends NullPointerException> void method4() throws NPE, RE
{
}
public class InnerClass <RuntimeException extends ClassCastException>
{
/**
* @throws E in some case
* @throws RE in some other cases
*/
public void method1() throws RuntimeException, RE,
java.lang.RuntimeException
{
}
}
/**
* @param <T> some parameter
* @param <E2> some exception parameter
*/
public interface InnerInterface<T, E2 extends Throwable> {
/**
* Some javadoc.
* @param t a parameter
* @throws E2 in some case.
* @return some string
*/
public abstract String doStuff(T t) throws E2;
}
/**
* @param <P> some parameter
*/
public interface InvalidParameterInJavadoc<T> {}
}
|