Commit Graph
5844 Commits
Author SHA1 Message Date
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
Pavel Dolgov 8a73604580 Java: Improved completion for arguments of reflection calls getField() and getMethod() - extract the actual type from Class.forName and from generic type parameter to provide the code assistance (IDEA-167250) 2017-02-02 14:55:52 +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
Anna.Kozlova 07a332598a ensure additional constrains are collected based on ground functional type (IDEA-167277) 2017-02-01 19:12:26 +01:00
peter 624831f243 IDEA-167367 Data flow analysis doesn't process division 2017-02-01 17:53:15 +01:00
peter 4e71366f3b prefer local variables over static method references in completion 2017-02-01 17:53:15 +01:00
Tagir Valeev 9246190c9c StreamApiMigrationInspection: suggest to use takeWhile() in Java-9 2017-02-01 19:46:04 +03:00
peter 8c1e3a6103 IDEA-165033 Completion should prefer expected enum values over the constants from other enums, even if they're more recently used
a test proving it works
2017-02-01 17:42:12 +01:00
Anna.Kozlova 9515470f1f detect generated method name: allow annotations with parameters (IDEA-167480) 2017-02-01 15:47:45 +01:00
Anna.Kozlova e3352b820f method signature: don't substitute twice during erasure (IDEA-167386) 2017-02-01 15:47:45 +01:00
nik 83e84fc677 qualified module names: don't show module name in Project View if it matches directory structure (IDEA-166061)
If module name can be composed by appending its directory name to a module name for the parent directory it makes no sense to show the full module name on the directory node in Project View.
2017-02-01 14:43:57 +03:00
peter 67bd507337 fix collecting completion stats for methods with argument suggestions
ensure that we don't change the tracked document range when starting live template
2017-02-01 11:57:32 +01:00
Tagir Valeev 80256c9bfb StreamToLoopInspection: support some simple StreamEx scenarios; support Java 9 takeWhile/dropWhile 2017-02-01 13:45:40 +03:00
peter 07e1a72077 prefer lookup items with shorter tail text (e.g. List#add(element) without index) 2017-02-01 09:22:50 +01:00
peter f66c322e16 prefer relevant types when completing cast type (IDEA-167190, IDEA-156868) 2017-01-31 19:23:12 +01:00
peter d1d548b8b8 let class name completion statistics not depend on the expected type
once ContainerUtil is selected in one context, prefer it in others
2017-01-31 15:49:07 +01: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
Roman Shevchenko f09c23c5bf [tests] updates JRT test data 2017-01-31 08:24:27 +03:00
peter a5a04bb4af IDEA-167285 Using "complete current statement" with code completion produces broken code 2017-01-30 21:10:52 +01:00
Tagir Valeev d8a28f8c5a SimplifyStreamApiCallChainsInspection: boolean identity handling: push ::apply inside ternary expression (more robust); disable if function type is a subclass with additional 'apply' methods; tests merged together; @author updated 2017-01-30 14:00:53 +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
peter 2ac4ed9c48 IDEA-167160 Completion doesn't suggest types for parameters in lambdas in Java 2017-01-27 15:06:16 +01:00
Tagir Valeev fb6ba726e5 StreamToLoop tests grouped 2017-01-27 17:41:53 +07:00
Anna Kozlova 3096de1332 forbid private classes in java 9 interfaces (IDEA-167121) 2017-01-26 19:02:35 +03:00
Tagir Valeevandkskrygan 533f500368 IDEA-167088 Stream API migration: support joining with delimiter 2017-01-26 09:42:45 +01:00
peter 808af5a49a report nullable values passed into not-null varargs (IDEA-167067) 2017-01-25 14:15:53 +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
Anna Kozlova 3057f56cae fix testdata case 2017-01-24 16:16:29 +03:00
Anna Kozlova ff905cfb6d generate super call: insert at caret, fix read only status tracking (IDEA-166864) 2017-01-24 16:16:29 +03:00
Tagir Valeev 2d57e55143 StreamToLoopInspection: support groupingBy(..., counting()/summingInt()/summingLong()/summingDouble()/mapping(summing...)) 2017-01-24 17:56:19 +07:00
Anna Kozlova d3e2f47a2d introduce constant: ensure chosen visibility is acceptable (IDEA-166950) 2017-01-24 12:08:04 +03: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
Anna Kozlova edac6e4874 make static: fix inner class check (IDEA-166983) 2017-01-23 16:24:03 +03:00
peter 54624d1864 infer no contracts for methods always returning null/true/false
they're likely to be used as constant-like flags for functionality being enabled or not (IDEA-166399)
2017-01-23 12:38:06 +01:00
Tagir Valeev 5cdeace236 IDEA-166896 Simplify stream chain in case of *match used with Boolean::booleanValue 2017-01-23 17:21:44 +07:00
Tagir Valeev 8f904a0d06 IDEA-166827 Quick-fix to insert SAM-method call 2017-01-23 12:55:51 +07:00
Tagir Valeev 05a7c64272 SimplifyCollectorInspection: added test with generic argument 2017-01-23 11:13:43 +07:00
peter edadcd1fb7 don't highlight usages of compile-time constants in variable initializers as always true/false (IDEA-157715) 2017-01-21 14:22:08 +01:00
peter 87f9b34b5b highlight nullable methods that always return a non-null value (IDEA-166399) 2017-01-21 14:22:06 +01:00