Commit Graph
26219 Commits
Author SHA1 Message Date
Alexey Kudravtsev 511fa66cb1 reverted optimisation mentioned in IDEA-CR-16603 2016-12-08 15:07:54 +03:00
Pavel Dolgov 10dd5478f6 Java: Reverted the name and the functionality of ConfusingElseInspection. Changed default settings, corrected text messages. Added tests. (IDEA-163393) 2016-12-08 14:59:11 +03:00
Anna.Kozlova 30db1d1ec8 java tests: ensure for possibly long test messages details to be included in the visible part (IDEA-165187) 2016-12-08 11:44:07 +01:00
Pavel Dolgov c63c47b3ee Java: Moved reusable bits of code from the inspection quick fix to the API - simplified. (IDEA-163139) 2016-12-08 13:12:14 +03:00
Anna.Kozlova 4d97e1e670 nullability
EA-92682 - IAE: TypeCompatibilityConstraint.<init>
2016-12-08 10:04:02 +01:00
Tagir Valeev e7e0982841 IDEA-165193 Provide a quick-fix to replace String concatenation in loop with StringBuilder 2016-12-08 15:56:55 +07:00
Tagir Valeev a1a71035a0 Java8MapApiInspection.getValueComparedWithNull moved to ExpressionUtils and used where applicable 2016-12-08 12:19:47 +07:00
Tagir Valeev 48b8f26d56 Java8MapApiInspection.getValueComparedWithNull moved to ExpressionUtils and used where applicable 2016-12-08 10:54:19 +07:00
Anna.Kozlova b086783d8d ensure no whitespaces/comments left after dequalify with type annotations (IDEA-165140) 2016-12-07 18:44:34 +01:00
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
Pavel Dolgov f920e7b65a Java: Moved reusable bits of code from the inspection quick fix to the API (IDEA-163139) 2016-12-07 17:10:49 +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 ffc9e47219 Remove fields from the loop nonFinalVariables (Fix for IDEA-165119 Nested loops to stream conversion) 2016-12-07 13:37:54 +07: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
Dana Dahlstrom 793940cab0 Remove duplicate boolean expression
added by commit 80ef611
2016-12-06 20:33:41 +03:00
Anna.Kozlova e55fbf3f1d isEffectivelyFinal: disallow effectively final variables to be initialized twice (IDEA-165060) 2016-12-06 17:54:19 +01:00
Anna.Kozlova dff2942958 replace underscore with type-based-name if parameter name is underscore (IDEA-165093) 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 275cdd1345 ensure getFamilyName is not empty (in tests) 2016-12-06 15:06:37 +01:00
Anna.Kozlova 81e49151ff don't insert braces around single lambda parameter 2016-12-06 12:35:48 +01:00
Anna.Kozlova 89e137c4b1 turn refs to super: don't touch implicit return types (IDEA-161252) 2016-12-06 12:13:22 +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
Dmitry Batkovich 6541698084 javac ast indices: CCE in getWholeHierarchy() EA-92616 2016-12-06 12:52:51 +03:00
Alexey Kudravtsev d41140dcb9 optimisation: accessor can be referenced by its simple property name from non-java sources only (optimises getName() search) 2016-12-06 12:40:00 +03: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
Vassiliy.Kudryashov d76aee1576 Refactoring: Get rid of some duplicating 'isModified()' methods, now it's part of Configurable interface
Improvements: Start using UINumericRange to validate int values we parse from text fields (settings etc.)
2016-12-05 23:01:38 +03: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 29ea8e3828 generate members when non-physical (lombok) element exist (IDEA-164829) 2016-12-05 15:19:21 +01:00
Anna.Kozlova 78483a38f5 show dialog outside write action 2016-12-05 15:19:21 +01:00
Anna.Kozlova 07e3187852 test only: check method references (IDEA-164989) 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
Dmitry Batkovich 99156fefe9 javac ast indices: fix for CCE 2016-12-05 13:20:02 +03:00
Pavel Dolgov dd2eca15bb Java: Fixed IOOBE in processing of sub-range of a control flow (IDEA-164442) 2016-12-05 13:19:24 +03: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 30b68a6775 [java] excludes @author tag from completion in method Javadoc (IDEA-159020) 2016-12-05 09:54:36 +01:00
Anna.Kozlova 5158220e86 junit 5 migration: add link to inspection 2016-12-05 09:49:50 +01:00
Anna.Kozlova 3134d57078 migration: remember deleted predefined maps, ensure predefined are added when directory already exists (IDEA-164521) 2016-12-05 09:49:50 +01:00
Anna.Kozlova 8a9f93e8b8 extends nothing to show message with imports clause (IDEA-164776) 2016-12-05 09:49:50 +01:00
Roman Shevchenko b6d4915e05 Cleanup (warnings; formatting) 2016-12-02 22:07:29 +01:00