Details
-
Enhancement
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
None
-
b25
Description
There is no need to use a temporary Vector within the constructor of SynchronizedInputStream, as more efficient (non-synchronized) alternative code (like List.of) will do the same in possibly less time. While the optimization is not dramatic, it still makes sense to replace Vector unless synchronization is really needed.