Repository: commons-lang Updated Branches: refs/heads/master caaf97ed8 -> ce0c08289
Avoid deprecation message by inlining the deprecated method code body Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ce0c0828 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/ce0c0828 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/ce0c0828 Branch: refs/heads/master Commit: ce0c082898e3551d313fb5b73763f399232b3fd5 Parents: caaf97e Author: Sebb <[email protected]> Authored: Tue Jul 5 21:55:48 2016 +0100 Committer: Sebb <[email protected]> Committed: Tue Jul 5 21:55:48 2016 +0100 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ce0c0828/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 ece0787..ff1fbac 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java @@ -488,7 +488,7 @@ public class FastDatePrinter implements DatePrinter, Serializable { public StringBuffer format(final long millis, final StringBuffer buf) { final Calendar c = newCalendar(); c.setTimeInMillis(millis); - return applyRules(c, buf); + return (StringBuffer) applyRules(c, (Appendable)buf); } /* (non-Javadoc) @@ -498,7 +498,7 @@ public class FastDatePrinter implements DatePrinter, Serializable { public StringBuffer format(final Date date, final StringBuffer buf) { final Calendar c = newCalendar(); c.setTime(date); - return applyRules(c, buf); + return (StringBuffer) applyRules(c, (Appendable)buf); } /* (non-Javadoc)
