Skip to content

Commit 3ae9094

Browse files
committed
Fix IDE warnings if targeting Java 25
1 parent 82f1e87 commit 3ae9094

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

java/org/apache/catalina/webresources/CachedResource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ public InputStream getInputStream() throws IOException {
576576

577577
@Override
578578
@Deprecated
579+
@SuppressWarnings("removal")
579580
public Permission getPermission() throws IOException {
580581
// Doesn't trigger a call to connect for file:// URLs
581582
return resourceURL.openConnection().getPermission();
@@ -639,6 +640,7 @@ public InputStream getInputStream() throws IOException {
639640

640641
@Override
641642
@Deprecated
643+
@SuppressWarnings("removal")
642644
public Permission getPermission() throws IOException {
643645
// Doesn't trigger a call to connect for jar:// URLs
644646
return resourceURL.openConnection().getPermission();

java/org/apache/catalina/webresources/war/WarURLConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public InputStream getInputStream() throws IOException {
5555

5656
@Override
5757
@Deprecated
58+
@SuppressWarnings("removal")
5859
public Permission getPermission() throws IOException {
5960
return wrappedJarUrlConnection.getPermission();
6061
}

0 commit comments

Comments
 (0)