org.apache.commons.lang3.time.CalendarReflection is no longer needed now

that we are on Java 7. Deprecate for now. Might remove depending on
discussion on dev ML.
This commit is contained in:
Gary Gregory 2016-11-17 11:27:53 -08:00
parent 46c42fcdaa
commit e6b830bf95
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@
/**
* Use reflection to access java 1.7 methods in Calendar. This allows compilation with 1.6 compiler.
* @deprecated Now that we are on Java 7.
*/
@Deprecated
class CalendarReflection {
private static final Method IS_WEEK_DATE_SUPPORTED = getCalendarMethod("isWeekDateSupported");

View File

@ -1292,7 +1292,7 @@ public int estimateLength() {
@Override
public void appendTo(final Appendable buffer, final Calendar calendar) throws IOException {
mRule.appendTo(buffer, CalendarReflection.getWeekYear(calendar));
mRule.appendTo(buffer, calendar.getWeekYear());
}
@Override