Tagir Valeev
|
3c2cd21d35
|
MigrateToStreamFix: explicit formatting removed (as formatted anyways automatically)
|
2018-05-30 18:23:38 +07:00 |
|
Tagir Valeev
|
b336e70485
|
Less smart simplifications after loop-to-stream (keep stream)
|
2018-05-13 18:10:54 +07:00 |
|
Tagir Valeev
|
a1a4663b73
|
CollectMigration: support toUnmodifiableMap
Fixes IDEA-187213 Stream API migration: support Java 10 toUnmodifiableList/Set/Map collections
|
2018-04-17 15:06:35 +07:00 |
|
Tagir Valeev
|
2e6232e029
|
StreamApiMigration tests reorganized
|
2018-03-13 11:21:23 +07:00 |
|
Tagir Valeev
|
b2d5f75a92
|
StreamApiMigration: support Java10 toUnmodifiableList/Set (part of IDEA-187213)
|
2018-03-13 11:21:22 +07:00 |
|
Tagir Valeev
|
c483ae9cd0
|
ControlFlowUtils#getInitializerUsageStatus fixed for do-while loops where var is declared just before the loop
|
2018-02-21 12:24:01 +07:00 |
|
Tagir Valeev
|
d5f9284f2e
|
ExpressionUtils#isSimpleExpression: disable for non-final fields
|
2018-02-05 15:53:39 +07:00 |
|
Tagir Valeev
|
3210510c96
|
CollectionUtils#isCollectionOrMapSize
Used in ToArrayCallWithZeroLengthArrayArgumentInspection and StreamApiMigrationInspection
|
2018-01-30 11:01:38 +07:00 |
|
Tagir Valeev
|
ac8ad2c822
|
IDEA-183326 Comment disappears in stream to loop
|
2017-12-06 17:47:22 +07:00 |
|
Tagir Valeev
|
6746c6e1d1
|
StreamApiMigration: fixed exception when void expression is used as method argument
|
2017-12-04 17:40:01 +07:00 |
|
Tagir Valeev
|
b435203ca2
|
IDEA-182759 CommentTracker already used exception
|
2017-11-28 12:57:49 +07:00 |
|
Tagir Valeev
|
5b36191d2c
|
IDEA-182623 Replace with collect swallows comments
|
2017-11-27 15:22:26 +07:00 |
|
Tagir Valeev
|
5b8f3b2bfe
|
StreamApiMigrationInspection: preserve comments on cleanUp limit/bufferedReader
|
2017-11-27 15:22:25 +07:00 |
|
Tagir Valeev
|
14759e531a
|
IDEA-180417 Generated code ("Replace with collect") is invalid follow-up
Fixed for groupingBy as well
|
2017-10-13 13:12:17 +07:00 |
|
Tagir Valeev
|
59c3fd672a
|
IDEA-180417 Generated code ("Replace with collect") is invalid
|
2017-10-13 13:04:12 +07:00 |
|
Roman
|
545ae69261
|
StreamApiMigrationInspection: improve stream source recognition
|
2017-09-27 12:28:23 +07:00 |
|
Roman
|
c20bbf70d2
|
Simplify Stream API call chain inspection improvements: IDEA-179118
|
2017-09-27 09:43:29 +07:00 |
|
Tagir Valeev
|
fa6bbd0b5d
|
CollectMigration: prepare to IncorporateStreamOperationsInspection; fix NewListTerminal to support collections only
|
2017-09-26 09:29:37 +07:00 |
|
Roman Ivanov
|
364c5bb129
|
add new groupBy cases
|
2017-09-13 11:29:31 +07:00 |
|
 Roman IvanovandRoman Ivanov
|
0752af3706
|
fix errors
|
2017-09-13 10:11:23 +07:00 |
|
Roman Ivanov
|
c3b4d6f849
|
support return in forEach replacement
|
2017-09-01 12:37:18 +07:00 |
|
 Roman IvanovandRoman Ivanov
|
5acdc9ccdc
|
add tests
|
2017-09-01 12:07:23 +07:00 |
|
Roman Ivanov
|
aaee667ca7
|
add nested stream filter recognition
|
2017-08-24 11:35:17 +07:00 |
|
Roman Ivanov
|
ef335f6a88
|
fix codegen for natural order: IDEA-CR-23874
|
2017-08-17 16:13:48 +07:00 |
|
Roman Ivanov
|
f9f85c0832
|
improve codegen in simple case
|
2017-08-17 16:13:47 +07:00 |
|
Roman Ivanov
|
fa416812fc
|
improve conversion to stream api for joining cases
|
2017-08-17 10:21:31 +07:00 |
|
Roman Ivanov
|
72bab18a58
|
support min/max in stream api migration, rearrange tests
|
2017-08-02 12:57:45 +07:00 |
|
Roman Ivanov
|
dd4ba58889
|
add support for binary operation reduction in stream migration
|
2017-07-20 17:15:07 +07:00 |
|
Tagir Valeev
|
036f556c55
|
ControlFlowUtils#statementBreaksLoop: fix void return case
|
2017-04-21 17:52:15 +07:00 |
|
Tagir Valeev
|
d0bd812d05
|
BoolUtils#getNegatedExpressionText: push negation down into || and &&
|
2017-04-10 16:11:18 +07:00 |
|
Tagir Valeev
|
478cae19bf
|
IDEA-170032 Replace with foreach is not proposed in alt-enter
Now both options (when unchecked) only disable warning and batch-mode replacement, but the action is still available as an intention.
|
2017-03-30 13:07:18 +07:00 |
|
Tagir Valeev
|
b2cd46bdeb
|
StreamApiUtil: fix addition of map operation when object-object cast is involved
|
2017-03-14 13:19:47 +07:00 |
|
Tagir Valeev
|
909f89ab6e
|
StreamApiMigration: disallow reassigning counting loop variable
|
2017-02-20 13:29:52 +07:00 |
|
Tagir Valeev
|
21b3f46f1a
|
StreamApiMigration: collect(joining()): allow separator addition based on counting loop variable value
|
2017-02-19 18:37:49 +07:00 |
|
Tagir Valeev
|
b8c9f1a1e0
|
IDEA-168203 Follow-up: do not suggest if initializer may throw checked exception or accesses non-final variable
|
2017-02-17 12:47:39 +07:00 |
|
Tagir Valeev
|
024c0831ac
|
IDEA-168203 StreamApiMigration: accept more standard collection constructors
|
2017-02-15 11:46:18 +07:00 |
|
Tagir Valeev
|
fc3f0bb09d
|
SimplifyStreamApiCallChainsInspection: convert IntStream.range(0, Math.min(limit, arr.length)).map(idx -> arr[idx]) to Arrays.stream(arr).limit(limit) and so on
|
2017-02-15 11:46:18 +07:00 |
|
Tagir Valeev
|
95ed6b3fd6
|
StreamApiMigrationInspection: use Stream.of, etc. to iterate explicitly created array
|
2017-02-14 14:27:23 +07:00 |
|
Tagir Valeev
|
05ccacfa5f
|
StreamApiMigration: check for label not pointing to the statement (Fix for EA-96734 - NPE: TerminalBlock.extractOperation)
|
2017-02-13 16:14:55 +07:00 |
|
Tagir Valeev
|
95baf652ae
|
StreamApiMigration: support joining with prefix and suffix
|
2017-02-06 14:40:21 +07:00 |
|
Tagir Valeev
|
9fbe22a647
|
afterAnyMatchAssignmentBooleanInverted: fixed after automatic simplification
|
2017-02-03 16:46:00 +03:00 |
|
Tagir Valeev
|
0bc8981efa
|
IDEA-167574 Provide inspection for find redundant StreamSupport.stream
Refactor SimplifyStreamApiCallChainsInspection
|
2017-02-03 10:40:11 +03:00 |
|
Tagir Valeev
|
9246190c9c
|
StreamApiMigrationInspection: suggest to use takeWhile() in Java-9
|
2017-02-01 19:46:04 +03:00 |
|
Tagir Valeev
|
e8c6ba183b
|
IDEA-167263 Stream API migration does not work when replacing simple loop on array of primitive types (int, long, double)
|
2017-01-30 14:00:52 +03:00 |
|
 Tagir Valeevandkskrygan
|
533f500368
|
IDEA-167088 Stream API migration: support joining with delimiter
|
2017-01-26 09:42:45 +01:00 |
|
Tagir Valeev
|
5f29e676e6
|
IDEA-167088 Stream API migration: allow resulting StringBuilder usages in concatenation
|
2017-01-25 14:36:47 +07:00 |
|
Tagir Valeev
|
4e6237cc7f
|
IDEA-167088 Stream API migration: intermediate mapping added
|
2017-01-25 13:36:56 +07:00 |
|
Tagir Valeev
|
bfa2fb9348
|
IDEA-167088 Stream API migration: support simple joining cases: fixed AT_WANTED_PLACE case
|
2017-01-25 13:05:08 +07:00 |
|
Tagir Valeev
|
16ddd276ed
|
IDEA-167088 Stream API migration: support simple joining cases
|
2017-01-25 12:46:01 +07:00 |
|
Tagir Valeev
|
327e51962b
|
IDEA-166814 Stream API migration: support more post-loop steps
|
2017-01-19 14:14:20 +07:00 |
|