Commit Graph
8758 Commits
Author SHA1 Message Date
Anna.Kozlova 4290a37a08 new inference: check intersection type of upper bound to detect substitution (IDEA-165011) 2016-12-07 18:44:34 +01:00
Pavel Dolgov fcf94c75d8 Java: Added a test case to DefUseTest for nested 'try/finally' within a 'for' loop. (IDEA-164371) 2016-12-07 20:09:30 +03:00
Dmitry Batkovich 4ac9d4360e create constructor parameter should consider context (e.g.: type parameter name == some class name from java.lang) 2016-12-07 18:23:14 +03:00
peter f45248dac9 don't increment psi mod counts on file writability change 2016-12-07 15:04:23 +01:00
Anna.Kozlova 5732b8fb81 ensure static fields/static initializers are evaluated before instance fields (IDEA-165084) 2016-12-07 11:18:47 +01:00
Tagir Valeev 54f7edf064 StreamApiMigrationInspection: use collect when computeIfAbsent is used; VariableAccessUtils#variableIsUsed instead of ReferenceSearch (IDEA-CR-16490) 2016-12-07 12:51:54 +07:00
Tagir Valeev 95fac58f03 ExcessiveLambdaUsageInspection: support JUnit5 assertions; regex as lambdaMethod, minor improvements (IDEA-CR-16398) 2016-12-07 12:13:02 +07:00
Anna.Kozlova e55fbf3f1d isEffectivelyFinal: disallow effectively final variables to be initialized twice (IDEA-165060) 2016-12-06 17:54:19 +01:00
Pavel Dolgov 05744d1ffd Java: Merged ConfusingElseInspection and RemoveRedundantElseAction into RedundantElseInspection, made it an INFORMATION-level inspection (IDEA-162191) 2016-12-06 17:42:37 +03:00
Anna.Kozlova 81e49151ff don't insert braces around single lambda parameter 2016-12-06 12:35:48 +01:00
Anna.Kozlova 57ec346668 precise rethrow: special case for catch Exception (IDEA-164241) 2016-12-06 12:13:22 +01:00
Roman Shevchenko aa5275a82a [java] minor optimization (IDEA-CR-16521) 2016-12-06 11:46:39 +01:00
Tagir Valeev f0c8802a27 StreamToLoop inspection: simplify toMap mergers (a,b)->a (use putIfAbsent) and (a,b)->b (use put) 2016-12-06 12:23:06 +07:00
Tagir Valeev f3d41d8a3c InlineStreamMapAction: restore comments 2016-12-06 12:23:06 +07:00
Tagir Valeev d7cb4edc8d IDEA-164880 Refactoring to function composition methods 2016-12-06 12:23:05 +07:00
Roman Shevchenko 2ebbf5b3c6 [java] soft keyword highlighting test v.2 (IDEA-CR-16521) 2016-12-05 18:37:06 +01:00
Roman Shevchenko 3a8f7fbe21 Merge remote-tracking branch 'origin/master' 2016-12-05 18:16:13 +01:00
Roman Shevchenko 5f41df1118 [test framework] moves non-bundled dependencies out of the framework 2016-12-05 18:05:14 +01:00
Anna.Kozlova 78483a38f5 show dialog outside write action 2016-12-05 15:19:21 +01:00
Roman Shevchenko df6fc23a4f [java] soft keyword highlighting test (IDEA-CR-16521) 2016-12-05 14:44:49 +01:00
Dmitry Batkovich 47916ce80b SuperClassHasFrequentlyUsedInheritorsInspection cleanup 2016-12-05 16:10:32 +03:00
Roman Shevchenko 8f5f475c10 [test framework] merges dispersed Path assertions 2016-12-05 13:39:46 +01:00
Pavel Dolgov 06cc032edf Java: Created an inspection (with a quick fix) that checks if a package is exported to the same module where it's declared. Tests added. (IDEA-164129) 2016-12-05 13:19:24 +03:00
Roman Shevchenko b6d4915e05 Cleanup (warnings; formatting) 2016-12-02 22:07:29 +01:00
Roman Shevchenko 9aef1ccba3 [java] allows @author tag on method Javadoc (IDEA-159020) 2016-12-02 20:29:33 +01:00
Anna.Kozlova 955ed1e8b2 more accurate error messages for field refs (IDEA-164919) 2016-12-02 17:52:28 +01:00
Dmitry Batkovich 3e927e977f MapReduceIndex moved to [util] 2016-12-02 19:31:45 +03:00
Roman Shevchenko c6cf5d2315 [platform] restores 'missing main class' check 2016-12-02 15:00:11 +01:00
peter 23cdae45fb java/groovy completion: suggest non-imported classes after new (IDEA-164468) 2016-12-02 14:32:31 +01:00
peter 133b33df55 don't issue psi event on project file (e.g. workspace.xml) changes 2016-12-02 14:32:31 +01:00
Roman Shevchenko 3ba30bfc6f Cleanup (updates deprecated API usages) 2016-12-02 13:48:03 +01:00
Anna.Kozlova 382b78aeca unrelated defaults: check if current class contains explicit method (IDEA-164732) 2016-12-02 11:51:07 +01:00
Yaroslav Lepenkin bb92553d33 [name hints] settings ui cosmetics 2016-12-02 13:47:41 +03:00
Tagir Valeev 203c11fca6 IDEA-164822 Migrate to Stream API: support toMap/groupingBy scenarios 2016-12-02 16:30:57 +07:00
peter 2d78283eee canonicalize test data formatting for inline local variable 2016-12-02 08:17:33 +01:00
Yaroslav Lepenkin 00b4845ce7 [name hints] java parameter hints provider refactored and converted to kt 2016-12-01 19:31:43 +03:00
Yaroslav Lepenkin 764d236694 [name hints] couple more tests 2016-12-01 19:31:43 +03:00
Anna.Kozlova 4e75eeae21 suspicious call: type of new expression must be assignable otherwise it's suspicious (IDEA-164816) 2016-12-01 16:52:02 +01:00
Anna.Kozlova 936294e05d allow functional expressions in nested conditional expressions (IDEA-164828) 2016-12-01 16:52:02 +01:00
Pavel Dolgov 0ba6caa000 Java: Check if 'java.base' is explicitly required in the inspection "Redundant 'requires' statement in module-info". Minor refactoring of RefJavaModule, to make the inspection code more straightforward. (IDEA-163139) 2016-12-01 13:29:10 +03:00
Anna.Kozlova f652ef0483 missed test (IDEA-CR-16341) 2016-12-01 10:39:31 +01:00
Anna.Kozlova 1732f58088 disable method reference replacement with qualifier (IDEA-164723) 2016-12-01 10:39:31 +01:00
Anna.Kozlova a17be30b79 include package local methods into method hierarchy (IDEA-164557) 2016-12-01 10:39:31 +01:00
Tagir Valeev 3a4264a912 Java8MapApiInspection: support some scenarios to produce Map.merge (IDEA-163910) 2016-12-01 14:01:37 +07:00
Tagir Valeev cd4f73b277 Java8MapApiInspectionTest: true unit test for getNameCandidate instead of full inspect-and-fix test 2016-12-01 10:38:45 +07:00
Yaroslav Lepenkin 63b66f3964 [name hints] option to show hints for multiple parameters with the same type 2016-11-30 19:42:53 +03:00
Dmitry Batrak e6a6f609ea IDEA-164610 Quick documentation should escape angle brackets at the value of a String field referred via @value (javadoc tag)
also add quotes to string value, and convert value into a link to corresponding field's javadoc, like javadoc tool does
2016-11-30 18:01:44 +03:00
Pavel Dolgov e7c52a1582 Java: Simplify the test for inspection "Redundant 'requires' statement in module-info" to avoid random failures (IDEA-163139) 2016-11-30 17:33:21 +03:00
Yaroslav Lepenkin 6212f5f31e [name hints] do not show hints if single method parameters name is contained in method name 2016-11-30 15:33:53 +03:00
Tagir Valeev 97f6252f82 Java8MapApiInspection: better name generation for lambda argument (IDEA-CR-16359) 2016-11-30 18:20:33 +07:00