Join GitHub today
Ban PathUtils.get (for now, until we fix the two remaining issues) #11069
The idea is to ban what will only cause securityexceptions. Instead paths should really be resolved against the ones configured in Environment.
I fixed the remaining "bogus" use cases of the method in this PR so we are only left with the real issues.
I moved tmpdir stuff to Environment.tmpFile() as well. IMO, Files.createTempFile()/Directory() that do not take Path should be banned as well as a followup PR.
Two reasons for that: