Permalink
Browse files

[Issue #394] Added javadoc mentioning special case when subclass over…

…rides/shadows superclass methods
  • Loading branch information...
1 parent b9e14f6 commit 6adb3ad892ed858849f4a80cd051441e8024226e @amalakar amalakar committed Sep 14, 2012
@@ -13,6 +13,9 @@
* exception. The <code>&#064;After</code> methods declared in superclasses will be run after those of the current
* class.</p>
*
+ * <p>Note: If a subclass overrides a <code>&#064;After</code> method of the superclass, it would render the
+ * <code>&#064;After</code> annotation of the superclass useless.</p>
+ *
* Here is a simple example:
* <pre>
* public class Example {
@@ -13,6 +13,9 @@
* exception. The <code>&#064;AfterClass</code> methods declared in superclasses will be run after those of the current
* class.</p>
*
+ * <p>Note: If a subclass shadows a <code>&#064;AfterClass</code> method of the superclass by using the
+ * same name, it would render the <code>&#064;AfterClass</code> annotation of the superclass useless.</p>
+ *
* Here is a simple example:
* <pre>
* public class Example {
@@ -12,6 +12,9 @@
* The <code>&#064;Before</code> methods of superclasses will be run before those of the current class.
* No other ordering is defined.
* </p>
+ *
+ * <p>Note: If a subclass overrides a <code>&#064;Before</code> method of the superclass, it would render the
+ * <code>&#064;Before</code> annotation of the superclass useless.</p>
*
* Here is a simple example:
* <pre>
@@ -13,6 +13,9 @@
* the test methods in the class. The <code>@BeforeClass</code> methods of superclasses
* will be run before those the current class.</p>
*
+ * <p>Note: If a subclass shadows a <code>&#064;BeforeClass</code> method of the superclass by using the
+ * same name, it would render the <code>&#064;BeforeClass</code> annotation of the superclass useless.</p>
+ *
* For example:
* <pre>
* public class Example {

0 comments on commit 6adb3ad

Please sign in to comment.