RFR: 8337838: Remove unused methods from ChronoLocalDateImpl

Roger Riggs rriggs at openjdk.org
Tue Aug 6 19:48:31 UTC 2024


On Fri, 19 Jul 2024 09:52:50 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> A few methods in `java.time.chrono.ChronoLocalDateImpl` are unused and could be removed:
> 1. plusWeeks(long)
> 2. minusYears(long)
> 3. minusMonths(long)
> 4. minusWeeks(long)
> 5. minusDays(long)
> 
> Tested `test/jdk/java/time` on Linux x64 release

The methods should not be removed, they provide default implementation, even though subclasses define overridden implementations.
Please close this PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20250#issuecomment-2272023547


More information about the core-libs-dev mailing list