On Mon, 12 May 2025 15:21:46 GMT, Daniel Fuchs <[email protected]> wrote:
>> Ah - good point - I will double check.
>
> Yes - it is needed as well. Apparently if you override a deprecated method
> you need both `@Deprecated` and `@SuppressWarning`:
>
>
> src/java.base/share/classes/java/net/HttpURLConnection.java:615: warning:
> [removal] getPermission() in URLConnection has been deprecated and marked for
> removal
> public Permission getPermission() throws IOException {
> ^
> error: warnings found and -Werror specified
Ok, but seems redundant.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24592#discussion_r2085033749