Commit Graph

908 Commits

Author SHA1 Message Date
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
Anna.Kozlova de1520695c static via instance: hide parameters/classes qualified names (IDEA-168084) 2017-02-13 19:30:18 +01: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
Dmitry Batkovich aa67d1e6e2 suggest wrap string expression with java.io.File when it's expected IDEA-167566 2017-02-09 12:19:11 +03:00
Anna.Kozlova e1cf56ba6f ensure change variable type to lambda parameter type is not suggested
EA-96540 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2017-02-09 10:14:07 +01:00
Tagir Valeev f396483457 Fixed EA-96417 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2017-02-08 18:16:37 +07:00
Anna.Kozlova dbcac2d62f fix modifiers for created inner classes (IDEA-167750) 2017-02-06 19:08:41 +01:00
Anna.Kozlova 6be04d9bf2 create inner: ensure no modifiers inside local/anonymous classes (IDEA-167727) 2017-02-06 19:08:41 +01:00
Tagir Valeev 95baf652ae StreamApiMigration: support joining with prefix and suffix 2017-02-06 14:40:21 +07:00
Tagir Valeev 4351d56253 IDEA-167613 Exception converting Arrays.stream to loop with generics: test added 2017-02-03 17:07:29 +03: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 7a4f84ead5 IDEA-167583 Uncompilable code after conversion Stream -> Loop with lambda 2017-02-03 00:19:56 +03:00
Tagir Valeev a767bc9672 IDEA-167580 Uncompilable code after conversion Stream -> Loop with generics 2017-02-02 22:08:44 +03:00
Tagir Valeev 803b3aa940 IDEA-167588 Uncompilable code after conversion Stream -> Loop with unknown Stream sources 2017-02-02 21:52:15 +03:00
Tagir Valeev 2e1c753a6d IDEA-167578 Uncompilable code after convertion forEach -> Loop with generics wildcard 2017-02-02 21:52:14 +03:00
Tagir Valeev 0183b826f9 IDEA-167466 String concatenation in loop inspection: provide additional quick-fix to introduce a new StringBuilder;
String concatenation in loop is enabled by default now
2017-02-02 14:29:02 +03:00
Tagir Valeev 9246190c9c StreamApiMigrationInspection: suggest to use takeWhile() in Java-9 2017-02-01 19:46:04 +03:00
Tagir Valeev 80256c9bfb StreamToLoopInspection: support some simple StreamEx scenarios; support Java 9 takeWhile/dropWhile 2017-02-01 13:45:40 +03:00
Tagir Valeev d8836c315d StreamToLoopInspection: support block void lambdas (and returns in forEach not inside nested loop) 2017-01-31 16:29:03 +03:00
Tagir Valeev c15f721206 StreamToLoopInspection: support Iterable.forEach() 2017-01-31 16:29:03 +03:00
Tagir Valeev a47088fa4f StringConcatenationInLoopsInspection: automatically create append chains 2017-01-31 16:29:02 +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
Pavel Dolgov 14b3a1b38f Java: When generating return statement where the returned type is an array use raw type in array creation (IDEA-163341) 2017-01-30 13:37:29 +03:00
Tagir Valeev fb6ba726e5 StreamToLoop tests grouped 2017-01-27 17:41:53 +07:00
Tagir Valeev 533f500368 IDEA-167088 Stream API migration: support joining with delimiter 2017-01-26 09:42:45 +01:00
Anna Kozlova 32b5f1d747 ensure local classes are not suggested to be made static (IDEA-167085) 2017-01-25 13:42:32 +03: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
Bas Leijdekkers acc75fbbff make class abstract too on making method abstract (IDEA-23358) 2017-01-24 14:41:56 +01:00
Tagir Valeev 2d57e55143 StreamToLoopInspection: support groupingBy(..., counting()/summingInt()/summingLong()/summingDouble()/mapping(summing...)) 2017-01-24 17:56:19 +07:00
Tagir Valeev 1820f2db99 StreamToLoopInspection: allow custom sources when option is set 2017-01-24 15:34:50 +07:00
Tagir Valeev ed51fbe99b LambdaRefactoringUtil#convertToLambda: check context when deciding whether to add qualifier 2017-01-24 13:56:26 +07:00
Tagir Valeev 8f904a0d06 IDEA-166827 Quick-fix to insert SAM-method call 2017-01-23 12:55:51 +07:00
Tagir Valeev 305c101ca6 StreamToLoop: fixed method references unwrap when functional interface type parameter is captured wildcard with upper bound 2017-01-20 17:52:44 +07:00
Anna Kozlova 62d2417879 don't qualify with this in static context (IDEA-166793) 2017-01-20 12:58:34 +03:00
Anna Kozlova 93fa3ed8c8 expected type by prefix expression should be calculated by parent (IDEA-166819) 2017-01-20 12:58:32 +03:00
Anna Kozlova f28bfb5bcb redundant type arguments: check all methods applicability till top level (IDEA-166696) 2017-01-20 12:58:32 +03:00
Tagir Valeev 327e51962b IDEA-166814 Stream API migration: support more post-loop steps 2017-01-19 14:14:20 +07:00
Anna Kozlova e323aa8b9c lambda -> method ref: don't transform by default array access qualifiers (IDEA-166740) 2017-01-18 19:11:49 +03:00
Anna Kozlova 560b5b0265 provide accessibility and static modifier fixes for method references (IDEA-166707) 2017-01-18 16:55:38 +03:00
Tagir Valeev cbd273dda8 StreamApiMigration: minor fixes in FindFirst scenarios 2017-01-18 13:52:12 +07:00
Tagir Valeev 4c07a74eb5 CommentTracker: better whitespace handling 2017-01-18 13:52:11 +07:00
Tagir Valeev a363362459 StreamApiMigration: automatically simplify IntStream.range().mapXyz chains; IndexedContainer#getElementType: do not erase 2017-01-16 17:43:50 +07:00
Tagir Valeev 8924fda614 StreamToLoopInspection: fixed unqualified reference to stream() method handling 2017-01-16 14:44:34 +07:00
Tagir Valeev 4aaa6a4cc2 IDEA-166636 A bunch of bugs in TrivialFunctionalExpressionUsageInspection (Method call can be simplified) 2017-01-16 12:52:08 +07:00