RFR: 8274050: Unnecessary Vector usage in javax.crypto

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Tue Sep 21 07:34:23 UTC 2021


In [JDK-8268873](https://bugs.openjdk.java.net/browse/JDK-8268873) I missed a few places, where Vector could be replaced with ArrayList.
Usage of thread-safe collection `Vector` is unnecessary. It's recommended to use `ArrayList` if a thread-safe implementation is not needed.

-------------

Commit messages:
 - [PATCH] Unnecessary Vector usage in javax.crypto
 - [PATCH] Unnecessary Vector usage in javax.crypto

Changes: https://git.openjdk.java.net/jdk/pull/5261/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5261&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274050
  Stats: 28 lines in 2 files changed: 2 ins; 6 del; 20 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5261.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5261/head:pull/5261

PR: https://git.openjdk.java.net/jdk/pull/5261


More information about the security-dev mailing list