As Spring Framework 6 uses JDK17 for its baseline, we can make use of toList() and toUnmodifiableSet() which introduced in JDK 16 and JDK 10 respectively.

Comment From: pivotal-cla

@yujinchoi-94 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@yujinchoi-94 Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

This has been merged into main.

Thanks