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:
parent
46c42fcdaa
commit
e6b830bf95
|
@ -24,7 +24,9 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use reflection to access java 1.7 methods in Calendar. This allows compilation with 1.6 compiler.
|
* 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 {
|
class CalendarReflection {
|
||||||
|
|
||||||
private static final Method IS_WEEK_DATE_SUPPORTED = getCalendarMethod("isWeekDateSupported");
|
private static final Method IS_WEEK_DATE_SUPPORTED = getCalendarMethod("isWeekDateSupported");
|
||||||
|
|
|
@ -1292,7 +1292,7 @@ public int estimateLength() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void appendTo(final Appendable buffer, final Calendar calendar) throws IOException {
|
public void appendTo(final Appendable buffer, final Calendar calendar) throws IOException {
|
||||||
mRule.appendTo(buffer, CalendarReflection.getWeekYear(calendar));
|
mRule.appendTo(buffer, calendar.getWeekYear());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue