Browse Source
The Files.exists method has noticeably poor performance in JDK 8 and can slow an application significantly when used to check files that do not actually exist. The same goes for Files.notExists, Files.isDirectory and Files.isRegularFile [1]. Replace them with their File counterpart. [1] https://rules.sonarsource.com/java/tag/performance/RSPEC-3725 Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com> Change-Id: I89d23b9cc74bec8e05f6b7f3e49bfd967dbb6373stable-4.11
Hector Caballero
7 years ago
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue