Commit Graph

3 Commits

Author SHA1 Message Date
Tagir Valeev
7e1064ea3c [java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00
Bas Leijdekkers
f3074be38d Textual changes for "'InputStream' and 'OutputStream' can be constructed using 'Files' methods" inspection
GitOrigin-RevId: 950341cb074fa4c5f62a776057f1eabf55f20321
2022-07-11 15:21:55 +00:00
Artemiy Sartakov
67e36d74a5 IOStreamConstructorInspection: added inspection (IDEA-171230)
Inspection suggests conversions:
1. FileInputStream -> Files.newInputStream
2. FileOutputStream -> Files.newOutputStream
in cases when FileInputStream can be replaced with InputStream.
Also, it reuses path variable after conversion when possible (path variable should be effectively final).

GitOrigin-RevId: 474dcaeeb5336fcc8330b4b3ed65d443042ecf2f
2022-01-25 07:01:39 +00:00