Skip to content

Commit acb44f9

Browse files
committed
Suppress warnings regarding deprecated JdkVersion
Issue: SPR-13312
1 parent 27e9db8 commit acb44f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/test/java/org/springframework/core/io/support/PathMatchingResourcePatternResolverTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.junit.Ignore;
2626
import org.junit.Test;
2727

28-
import org.springframework.core.JdkVersion;
2928
import org.springframework.core.io.Resource;
3029

3130
import static org.junit.Assert.*;
@@ -83,7 +82,8 @@ public void testSingleResourceOnFileSystem() throws IOException {
8382
public void testSingleResourceInJar() throws IOException {
8483
Resource[] resources = resolver.getResources("java/net/URL.class");
8584
assertEquals(1, resources.length);
86-
String expectedProtocol = (JdkVersion.getMajorJavaVersion() < JdkVersion.JAVA_19 ? "jar" : "jrt");
85+
@SuppressWarnings("deprecation")
86+
String expectedProtocol = (org.springframework.core.JdkVersion.getMajorJavaVersion() < org.springframework.core.JdkVersion.JAVA_19 ? "jar" : "jrt");
8787
assertProtocolAndFilename(resources[0], expectedProtocol, "URL.class");
8888
}
8989

0 commit comments

Comments
 (0)