4 Commits

Author SHA1 Message Date
Tagir Valeev
9c6aeba5b4 [java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
2022-07-22 11:54:00 +00:00
Bas Leijdekkers
7e9ee7537f Textual changes for "Bulk 'Files.readAttributes()' call can be used" inspection
GitOrigin-RevId: 8ca94e665d8345b4b299415fd3bf43cf22d28c68
2022-07-11 15:21:53 +00:00
Artemiy Sartakov
6633bef908 BulkFileAttributesReadInspection: clustering attribute calls by loops before reporting (IJ-CR-20279)
GitOrigin-RevId: 70cebc3298eea9feb57f7b4f1f4ca7b8b0535c66
2022-02-14 10:31:26 +00:00
Artemiy Sartakov
51b6c30a78 BulkFileAttributesReadInspection: added inspection
Inspection reports multiple java.io.File attribute calls in a row. Attribute calls:
- lastModified
- isFile
- isDirectory
- length
It suggests replacing them with a single attributes extraction using java.nio.file.Files.readAttributes method

GitOrigin-RevId: cd2f93645aab9a4cba2e1f87e05b431f0d21ee50
2022-01-31 06:31:09 +00:00