Commit Graph

17 Commits

Author SHA1 Message Date
Tagir Valeev
d2320c01cc [java-inspections] Java9CollectionFactoryInspection: more conservative null handling (IDEA-294007)
GitOrigin-RevId: 1395d30a1df4e2dc9533254d5aa38737178dcca8
2022-05-17 08:48:50 +00:00
Bas Leijdekkers
54975a31ba Improve inspection problem descriptor
GitOrigin-RevId: 8abf2188d180865951921d5ebfd9bd7bd33bfc6b
2021-03-18 08:40:12 +00:00
Roman.Ivanov
74ebe249a6 Testing infra: Assert that there are no unused 'after' files
GitOrigin-RevId: 6d3a515b318ab0ff7d036e21765473e772d0a5c0
2019-10-14 12:32:51 +00:00
Tagir Valeev
f1de3f00bb Java9CollectionFactoryInspection: do not check whether copied collection types agree
Fixes IDEA-195560 'List.copyOf' not suggested when Set passed to 'new ArrayList<>()'
2018-07-27 00:40:31 +07:00
Tagir Valeev
4454c3b0c1 IDEA-187212 Suggest to use Java 10 List/Set/Map.copyOf where possible 2018-06-13 16:08:40 +07:00
Tagir Valeev
f533da27ef IDEA-179280 java9 - intention to use Map.ofEntries 2017-09-21 13:24:48 +07:00
yarik
ced545552a [java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you 2017-06-20 14:48:26 +03:00
Tagir Valeev
0aa303139b IDEA-173272 "Double brace initialization" may suggest 'Map.of' in JDK9 2017-05-24 13:03:22 +07:00
Tagir Valeev
1305a60e44 IDEA-172798 "Immutable collection creation can be replaced" to remove temporary variable used for assignment 2017-05-15 13:21:05 +07:00
Tagir Valeev
6f60712d5a Java9CollectionFactoryInspectionTest: updated to use MockJdk9 2017-03-09 10:55:16 +07:00
Tagir Valeev
157b31fdb3 Java9CollectionFactoryInspectionTest#HashMap10: expected code fixed 2017-03-01 12:54:11 +07:00
Tagir Valeev
3f6a84d808 Java9CollectionFactoryInspection: try to preserve comments on their original places 2017-03-01 11:50:09 +07:00
Tagir Valeev
f36d4710f1 Java9CollectionFactoryInspection: add type argument if necessary 2017-02-28 13:05:21 +07:00
Tagir Valeev
0deb0dac6f Migrate to simplified collection: Map support 2017-02-27 17:23:21 +07:00
Tagir Valeev
5459f1f931 Migrate to simplified collection: disable if null or repeating constant value; checkbox to not warn on non-constant content 2017-02-27 16:30:49 +07:00
Tagir Valeev
f8f7f60fd6 IDEA-167942 Migrate to simplified collection factories (JEP 269): support explicit addition chain 2017-02-27 10:35:34 +07:00
Tagir Valeev
2dda8819cc IDEA-167942 Migrate to simplified collection factories (JEP 269): initial implementation (supported scenarios 2, 3, 4 for sets and similar for lists) 2017-02-27 10:35:34 +07:00