(Moment context)
| 73 | //~ Methoden ---------------------------------------------------------- |
| 74 | |
| 75 | @Override |
| 76 | public V apply(Moment context) { |
| 77 | |
| 78 | ZonalOffset shift = ( |
| 79 | (this.offset == null) |
| 80 | ? this.tz.getOffset(context) |
| 81 | : this.offset); |
| 82 | |
| 83 | if ( |
| 84 | (this.element == PlainTime.SECOND_OF_MINUTE) |
| 85 | && context.isLeapSecond() |
| 86 | && (shift.getFractionalAmount() == 0) |
| 87 | && ((shift.getAbsoluteSeconds() % 60) == 0) |
| 88 | ) { |
| 89 | return this.element.getType().cast(Integer.valueOf(60)); |
| 90 | } |
| 91 | |
| 92 | return PlainTimestamp.from(context, shift).get(this.element); |
| 93 | |
| 94 | } |
| 95 | |
| 96 | } |
nothing calls this directly
no test coverage detected