Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To avoid any sonarcloud complains, use Map.of/Set.of when you want to create an immutable map/set using set of entries supplied by you on the flythat you provide. Even though an unmodifiable map/set is returned, this is still an immutable map/set as there is no mutable map/set, that can be changed.
From CPS codebase, Line 60 of the MutilpartFileUtil.java file found in cps/cps-rest/src/main/java/org/cps/rest/utils/ 

...