Usage of thread-safe collection Vector is unnecessary. It's recommended to use ArrayList/array if a thread-safe implementation is not needed. In post-BiasedLocking times, this is gets worse, as every access is synchronized. I checked only places where Vector was used as local variable.
------------- Commit messages: - [PATCH] Unnecessary Vector usage in java.naming Changes: https://git.openjdk.java.net/jdk/pull/5262/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5262&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8273098 Stats: 30 lines in 3 files changed: 1 ins; 2 del; 27 mod Patch: https://git.openjdk.java.net/jdk/pull/5262.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5262/head:pull/5262 PR: https://git.openjdk.java.net/jdk/pull/5262