Skip to content

Commit 543905d

Browse files
stefanbirknermarcphilipp
authored andcommitted
Use separate line for annotation in Javadoc
Align coding style of the examples.
1 parent 510e906 commit 543905d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/org/junit/Test.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
* an exception. If it doesn't throw an exception or if it throws a different exception
3333
* than the one declared, the test fails. For example, the following test succeeds:
3434
* <pre>
35-
* &#064;Test(<b>expected=IndexOutOfBoundsException.class</b>) public void outOfBounds() {
35+
* &#064;Test(<b>expected=IndexOutOfBoundsException.class</b>)
36+
* public void outOfBounds() {
3637
* new ArrayList&lt;Object&gt;().get(1);
3738
* }
3839
* </pre>
@@ -46,7 +47,8 @@
4647
* The parameter <code>timeout</code> causes a test to fail if it takes
4748
* longer than a specified amount of clock time (measured in milliseconds). The following test fails:
4849
* <pre>
49-
* &#064;Test(<b>timeout=100</b>) public void infinity() {
50+
* &#064;Test(<b>timeout=100</b>)
51+
* public void infinity() {
5052
* while(true);
5153
* }
5254
* </pre>
@@ -55,7 +57,8 @@
5557
* following test may or may not fail depending on how the operating system
5658
* schedules threads:
5759
* <pre>
58-
* &#064;Test(<b>timeout=100</b>) public void sleep100() {
60+
* &#064;Test(<b>timeout=100</b>)
61+
* public void sleep100() {
5962
* Thread.sleep(100);
6063
* }
6164
* </pre>

0 commit comments

Comments
 (0)