Skip to content

Commit 07b4f51

Browse files
committed
#2914: improve grammar and markup in javadoc according to review
1 parent 9533fca commit 07b4f51

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

Diff for: junit-jupiter-api/src/main/java/org/junit/jupiter/api/AfterAll.java

+8-9
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,16 @@
4343
* <h2>Inheritance and Execution Order</h2>
4444
*
4545
* <p>{@code @AfterAll} methods are inherited from superclasses as long as
46-
* they are not <em>hidden</em> (default mode with {@code static} modifier) or
47-
* <em>overridden</em> or 'superseded' (i.e., replaced based on signature only,
48-
* irrespective of Java's visibility rules). Furthermore, {@code @AfterAll}
49-
* methods from superclasses will be executed after {@code @AfterAll} methods
50-
* in subclasses.
46+
* they are not <em>hidden</em> (default mode with {@code static} modifier), or
47+
* <em>overridden</em>, or <em>superseded</em> (i.e., replaced based on
48+
* signature only, irrespective of Java's visibility rules). Furthermore,
49+
* {@code @AfterAll} methods from superclasses will be executed before
50+
* {@code @AfterAll} methods in subclasses.
5151
*
5252
* <p>Similarly, {@code @AfterAll} methods declared in an interface are
53-
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>
54-
* (or 'superseded', see above), and {@code @AfterAll} methods from an
55-
* interface will be executed after {@code @AfterAll} methods in the class
56-
* that implements the interface.
53+
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>,
54+
* and {@code @AfterAll} methods from an interface will be executed after
55+
* {@code @AfterAll} methods in the class that implements the interface.
5756
*
5857
* <p>JUnit Jupiter does not guarantee the execution order of multiple
5958
* {@code @AfterAll} methods that are declared within a single test class or

Diff for: junit-jupiter-api/src/main/java/org/junit/jupiter/api/AfterEach.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* <h2>Inheritance and Execution Order</h2>
3737
*
3838
* <p>{@code @AfterEach} methods are inherited from superclasses as long as
39-
* they are not overridden or 'superseded' (i.e., replaced based on signature
40-
* only, irrespective of Java's visibility rules). Furthermore,
39+
* they are not overridden or <em>superseded</em> (i.e., replaced based on
40+
* signature only, irrespective of Java's visibility rules). Furthermore,
4141
* {@code @AfterEach} methods from superclasses will be executed after
4242
* {@code @AfterEach} methods in subclasses.
4343
*

Diff for: junit-jupiter-api/src/main/java/org/junit/jupiter/api/BeforeAll.java

+8-9
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,16 @@
4343
* <h2>Inheritance and Execution Order</h2>
4444
*
4545
* <p>{@code @BeforeAll} methods are inherited from superclasses as long as
46-
* they are not <em>hidden</em> (default mode with {@code static} modifier) or
47-
* <em>overridden</em> or 'superseded' (i.e., replaced based on signature only,
48-
* irrespective of Java's visibility rules). Furthermore, {@code @BeforeAll}
49-
* methods from superclasses will be executed before {@code @BeforeAll} methods
50-
* in subclasses.
46+
* they are not <em>hidden</em> (default mode with {@code static} modifier), or
47+
* <em>overridden</em>, or <em>superseded</em> (i.e., replaced based on
48+
* signature only, irrespective of Java's visibility rules). Furthermore,
49+
* {@code @BeforeAll} methods from superclasses will be executed before
50+
* {@code @BeforeAll} methods in subclasses.
5151
*
5252
* <p>Similarly, {@code @BeforeAll} methods declared in an interface are
53-
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>
54-
* (or 'superseded', see above), and {@code @BeforeAll} methods from an
55-
* interface will be executed before {@code @BeforeAll} methods in the class
56-
* that implements the interface.
53+
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>,
54+
* and {@code @BeforeAll} methods from an interface will be executed before
55+
* {@code @BeforeAll} methods in the class that implements the interface.
5756
*
5857
* <p>JUnit Jupiter does not guarantee the execution order of multiple
5958
* {@code @BeforeAll} methods that are declared within a single test class or

Diff for: junit-jupiter-api/src/main/java/org/junit/jupiter/api/BeforeEach.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* <h2>Inheritance and Execution Order</h2>
3737
*
3838
* <p>{@code @BeforeEach} methods are inherited from superclasses as long as
39-
* they are not overridden or 'superseded' (i.e., replaced based on signature
40-
* only, irrespective of Java's visibility rules). Furthermore,
39+
* they are not overridden or <em>superseded</em> (i.e., replaced based on
40+
* signature only, irrespective of Java's visibility rules). Furthermore,
4141
* {@code @BeforeEach} methods from superclasses will be executed before
4242
* {@code @BeforeEach} methods in subclasses.
4343
*

0 commit comments

Comments
 (0)