Repository: commons-lang Updated Branches: refs/heads/master 6f318c10a -> 10ebb32ce
LANG-1245: resurrect applyRules(java.util.Calendar, java.lang.StringBuffer) for binary compatibility Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/10ebb32c Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/10ebb32c Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/10ebb32c Branch: refs/heads/master Commit: 10ebb32ce1806821518f52074f0d171fab20b3ea Parents: 6f318c1 Author: Chas Honton <[email protected]> Authored: Tue Jun 14 21:05:53 2016 -0700 Committer: Chas Honton <[email protected]> Committed: Tue Jun 14 21:05:53 2016 -0700 ---------------------------------------------------------------------- .../org/apache/commons/lang3/time/FastDatePrinter.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/10ebb32c/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java index 91ee719..4ff2bbc 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java @@ -540,6 +540,14 @@ public class FastDatePrinter implements DatePrinter, Serializable { } /** + * @deprecated use {@link #format(Calendar)} or {@link #format(Calendar, Appendable)} + */ + @Deprecated + protected StringBuffer applyRules(final Calendar calendar, final StringBuffer buf) { + return (StringBuffer) applyRules(calendar, (Appendable)buf); + } + + /** * <p>Performs the formatting by applying the rules to the * specified calendar.</p> * @@ -548,7 +556,7 @@ public class FastDatePrinter implements DatePrinter, Serializable { * @param <B> the Appendable class type, usually StringBuilder or StringBuffer. * @return the specified string buffer */ - protected <B extends Appendable> B applyRules(final Calendar calendar, final B buf) { + private <B extends Appendable> B applyRules(final Calendar calendar, final B buf) { try { for (final Rule rule : mRules) { rule.appendTo(buf, calendar);
