blob: 34e55ab26e6103d7d12d7b028cec544ca55f9070 (
plain) (
blame)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/**
* A package header
*/
package test.scaladoc;
/**
* Testing java comments. The presence of a :marker:
* tag is verified by tests.
*/
public class JavaComments {
/** A field */
public final int x;
/** A field */
protected int y;
/** A field */
private int z;
/**
* Inner class
*/
public class Inner {
/** Inner method */
public void foo() {
}
}
/**
* A typed inner class
* @param <T> some type
*/
public class InnerTyped<T> {
}
/**
* Compute the answer to the ultimate question of life, the
* universe, and everything. :marker:
* @param factor scaling factor to the answer
* @return the answer to everything (42) scaled by factor
*/
public int answer(int factor) {
return 42 * factor;
}
/** Private */
private double foo(double value) {
return value;
}
/** Protected */
protected double bar(double value) {
return value;
}
/** No qualifier*/
String noqualifier() {
return "something";
}
/** Void */
public void voidmethod(boolean t) {
}
/**
* Typed parameter
* @param <A> the parameter type
* @param a parameter
* @return something
*/
public <A> void tparams(A a) {
}
/**
* Typed parameter
* @param <A> the return type
* @param <B> the parameter typeA
* @param b parameter
* @return casts B to A
*/
public <A, B extends A> A cast(B b) {
return (B) b;
}
}
|