Commit Graph

10 Commits

Author SHA1 Message Date
Tagir Valeev
98a4b2d977 [java-inspections] ToArrayTerminal: allow reusing a target collection in another branch only when return is on the same level
Fixes IDEA-304740 FuseStreamOperationsInspection fix produces red code

GitOrigin-RevId: b9a169e54bae1de448194b8debb39f79904ceb90
2022-10-28 18:21:22 +00:00
Tagir Valeev
dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00
Tagir Valeev
390a408fa0 Bundle ICU4J; create NlsMessages to format duration and and/or lists
Fixes IDEA-247854 Formats#formatDuration is not localizable

GitOrigin-RevId: adb56cac0ecc7c47a644887e3eb17e9ca26b47bd
2020-09-15 04:50:16 +00:00
Alexey Kudravtsev
2b081e39ab make some clients independent of order of results in Query.findAll()
GitOrigin-RevId: df14c535f9ff642399ed42e123563dac3db8bb20
2019-10-11 15:33:13 +00:00
Tagir Valeev
2572c79c56 CollectMigration.NewListTerminal: support Guava collection constructors (IDEA-219934)
Also remove .distinct() automatically when unnecessary.

GitOrigin-RevId: 504dd9e645f9492a4142c0793c42188912afdde9
2019-08-07 12:04:38 +03:00
Tagir Valeev
bd4a3477f5 StreamApiMigration: register comments from post-loop operations like sorting 2018-06-27 09:29:38 +07:00
Tagir Valeev
b2d5f75a92 StreamApiMigration: support Java10 toUnmodifiableList/Set (part of IDEA-187213) 2018-03-13 11:21:22 +07:00
Tagir Valeev
f06e8ca2f0 IDEA-185812 Allow to force explicit toCollection(ArrayList::new) instead of toList() in "Subsequent steps can be fused into Stream API" 2018-02-01 17:16:04 +07:00
Tagir Valeev
1779a8a871 FuseStreamOperationsInspection: fixes according to review IDEA-CR-24873
1. Code sample in description
2. Supported toCollection with parameterized method-reference
2017-09-27 10:50:03 +07:00
Tagir Valeev
2a29c82c70 FuseStreamOperationsInspection
Fixes IDEA-179303 Suggest replacing Collectors.toList()/toSet() + collection constructor with Collectors.toCollection
2017-09-26 11:01:37 +07:00