From 3ee4bcce8a6673627e6872b1dbbb03250e121891 Mon Sep 17 00:00:00 2001 From: Alex Panchenko Date: Thu, 25 May 2017 23:36:45 +0700 Subject: [PATCH] deprecate RuleChain --- src/main/java/org/junit/rules/RuleChain.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/junit/rules/RuleChain.java b/src/main/java/org/junit/rules/RuleChain.java index fe710eb2eb024..0ed497339ddda 100644 --- a/src/main/java/org/junit/rules/RuleChain.java +++ b/src/main/java/org/junit/rules/RuleChain.java @@ -53,8 +53,12 @@ * .around(new LoggingRule("inner rule")); * * + * @deprecated Since 4.13 ordering of rules can be naturally specified with an annotation attribute. + * @see org.junit.Rule#order() + * @see org.junit.ClassRule#order() * @since 4.10 */ +@Deprecated public class RuleChain implements TestRule { private static final RuleChain EMPTY_CHAIN = new RuleChain( Collections.emptyList());