This commit removes the @Deprecated declaration on the org.springframework.mock.jndi package, since such usage results in a compiler warning on JDK 9+ which breaks Spring's JDK 9 and JDK 11 CI builds. https://bugs.openjdk.java.net/browse/JDK-6481080 See gh-22779