LPS-50556 Unsafe type conversion leads to java collections error

$ ant format-source
Buildfile: d:\repo\portal\portal-impl\build.xml

format-source:
     [copy] Copying 3 files to d:\repo\portal\portal-impl\classes
     [java] Loading file:/D:/repo/portal/portal-impl/classes/system.properties
     [java] Loading file:/D:/repo/portal/portal-impl/classes/portal.properties

BUILD SUCCESSFUL
Total time: 1 minute 5 seconds