Commit Graph
51 Commits
Author SHA1 Message Date
Tagir Valeev c29dc4e3a4 IDEA-161002 Support cases like if(...) { for(...) {...} } return false; 2016-09-13 12:21:27 +07:00
Tagir Valeev 9540aeb8c2 IDEA-CR-13640 Suggest variable name based on type 2016-09-13 11:35:14 +07:00
Tagir Valeev 6da7838df4 IDEA-161002 anyMatch/noneMatch disabled for non-final vars; allMatch is supported 2016-09-12 14:28:24 +07:00
Tagir Valeev 821b6c83f0 IDEA-CR-13651 BoolUtils.getNegatedExpressionText() used and fixed for float/double (to preserve semantics for NaNs) 2016-09-12 11:36:31 +07:00
Tagir Valeev 884043aacc IDEA-161002 Migration to Stream API: convert return true/return false to anyMatch/noneMatch 2016-09-09 17:41:19 +07:00
Tagir Valeev 610a2a914b IDEA-151523 Method reference is not created unconditionally now (for complex qualifier or non-final field it could be incorrect) 2016-09-09 13:58:56 +07:00
Tagir Valeev 6d5901be86 IDEA-160946 Labeled continue is excluded; understand if(..) continue else {...}; more tests 2016-09-09 11:22:00 +07:00
Tagir Valeev 29097076aa IDEA-160946 Stream API migration: understand if(...) continue at the beginning of the loop 2016-09-08 18:19:27 +07:00
Tagir Valeev c4b6464524 IDEA-160802 fixed case with collection summing 2016-09-08 16:53:51 +07:00
Tagir Valeev 55c8f0cf46 IDEA-151523 Replace with collect when working with an existing collection 2016-09-08 15:22:06 +07:00
Tagir Valeev 8015562c2d IDEA-160898 Inspection to convert several commonly-used lambdas to method references 2016-09-08 12:25:37 +07:00
Tagir Valeev 838d8a7146 IDEA-160789 Migration to Stream API: replace with mapToInt/Long/Double().sum() when possible 2016-09-06 15:50:03 +07:00
Tagir Valeev b0b62211d6 IDEA-160784 Migration to Stream API: replace with Stream.count() when possible (now i+=1 and i=i+1 also supported) 2016-09-06 12:37:05 +07:00
Tagir Valeev 7214316544 IDEA-160778 Buggy replacement with collect when several variables are declared in the same statement 2016-09-06 12:08:23 +07:00
Tagir Valeev f0276b724d StreamApiMigrationInspection: use toList()/toSet() collector if target variable type is Collection 2016-09-06 11:56:13 +07:00
Tagir Valeev e72f6656f8 IDEA-160784 Migration to Stream API: replace with Stream.count() when possible 2016-09-05 17:47:41 +07:00
Tagir Valeev 13d9f8d53a IDEA-CR-13504 Lambda to method-reference: PsiVariable is accepted as it's necessary for StreamApiMigrationInspection;
StreamApiMigrationInspection.TerminalBlock simplified (myFrom/myTo did not actually improve performance, but added unnecessary logic)
2016-09-05 08:57:55 +07:00
Tagir Valeev b7a423d001 IDEA-160707 Stream API migration: support object arrays 2016-09-02 17:55:07 +07:00
Tagir Valeev 6bd88cf67f IDEA-160637 test fixed 2016-09-02 14:47:07 +07:00
Tagir Valeev 1a1290751c IDEA-160637 Stream API migration: support map and flatMap steps 2016-09-02 14:40:40 +07:00
Anna Kozlova 98687b3c65 replace with foreach: disable for arrays of collection type (IDEA-160323) 2016-08-26 11:53:30 +03:00
Anna.Kozlova f14159a852 disable replace with collect for raw collection substitutors (IDEA-153325) 2016-03-21 14:14:26 +01:00
Anna.Kozlova 81a6342d17 anonymous -> method ref: collapse receiver method references to raw receiver (IDEA-153261) 2016-03-18 20:49:43 +01:00
Anna Kozlova c6d354b962 replace with collect: collapse lambda to method reference in filters (IDEA-151491) 2016-02-24 13:12:24 +01:00
Anna Kozlova 7a671c53f8 stream api: fix primitive boxing (IDEA-151494) 2016-02-15 15:49:06 +01:00
Anna Kozlova 5d70440851 foreach -> collect: simplify to addAll on collections if no filter/mapper is present (IDEA-150515) 2016-01-22 14:29:01 +03:00
Anna Kozlova 5ff68d71b0 stream api: shorten class references when replace with foreach 2015-06-26 15:13:22 +03:00
Anna Kozlova 155f283f0e convert to streams: convert lambda to constructor reference; don't accept list when arrayList expected 2015-06-09 20:31:02 +03:00
Anna Kozlova 2f47f0caf0 migration to stream api: disable for raw types (IDEA-140095) 2015-05-08 21:01:45 +02:00
Anna Kozlova 95dfffccb0 replace with collect: insert cast for method reference and simplify when redundant (IDEA-139704) 2015-04-28 13:04:58 +02:00
Anna Kozlova 50043d2bd9 EA-65747 - assert: LambdaCanBeMethodReferenceInspection.canBeMethodReferenceProblem
(cherry picked from commit 694a7b3b7869e1be50170bf6490c8b3e30328c4b)
2015-03-11 20:36:01 +01:00
Anna Kozlova 87a7731477 disable stream conversion if qualifier is used inside method call args (IDEA-137186)
(cherry picked from commit 24dfdad535f2c33e4d1f4d004a28b0ca45012c1b)
2015-03-11 20:34:30 +01:00
Anna Kozlova ffbe05e14d stream migration: reject collection conversion if qualifier depends on loop parameter (IDEA-135104) 2015-01-13 20:55:48 +01:00
Anna Kozlova 0aeef103be convert to stream: support nested conditions 2014-11-12 19:37:57 +01:00
Anna Kozlova ea883dd1e7 stream migration: do not suggest to migrate if exceptions are thrown inside the block (IDEA-129484) 2014-09-12 21:36:55 +04:00
Anna Kozlova 32fe2746f9 stream api: do not collapse loops when body is not throws compatible (IDEA-125541) 2014-05-26 15:35:49 +04:00
Anna Kozlova 1ab69ce2b2 stream migration: missed qualifiers restored (IDEA-124820) 2014-05-07 11:57:36 +04:00
Anna Kozlova 209d176ea6 disable stream api conversion on iterable (IDEA-124222) 2014-04-23 20:10:18 +02:00
Anna Kozlova e512a2f07a EA-55951 - CCE: StreamApiMigrationInspection$ReplaceWithForeachCallFix.applyFix 2014-04-16 19:19:20 +02:00
Anna Kozlova 5bc8717dc9 EA-55507 - IOE: PsiJavaParserFacadeImpl.createStatementFromText 2014-04-01 14:17:07 +02:00
Anna Kozlova 43b8f9cdf4 stream migration: collapse identity matching (IDEA-122706) 2014-03-24 20:22:22 +01:00
Anna Kozlova d8747dfea6 stream: do not suggest collect when filter depends on collection (IDEA-122410) 2014-03-19 22:02:25 +01:00
Anna Kozlova a042720e74 stream migration inspection: preserve comments (IDEA-121679) 2014-03-06 15:30:23 +01:00
Anna Kozlova b060c817e0 stream migration inspection: collapse only primitive new initializers (IDEA-121745) 2014-03-06 15:30:22 +01:00
Anna Kozlova 380c7a998e testdata for IDEA-121661 2014-03-05 11:39:48 +01:00
Anna Kozlova 0fa7d08f83 IDEA-121658 Java 1.8: "Replace with forEach" quick fix is not suggested if for statement is not surrounded with braces 2014-03-05 11:39:47 +01:00
Anna Kozlova e31638ac97 IDEA-121621 Java 1.8: "Replace with collect" quick fix inserts unresolved method reference 2014-03-04 19:29:05 +01:00
Anna Kozlova 6087cbacb0 java 1.8, stream api migration: convert to method refs 2014-03-03 13:43:44 +01:00
Anna Kozlova fb65345150 java 1.8, stream api migration: shorten class names 2014-03-03 13:43:43 +01:00
Anna Kozlova 0cab1e2e81 java 1.8, stream api migration: collect (to be continued) 2014-03-03 11:00:05 +01:00