Commit Graph
10936 Commits
Author SHA1 Message Date
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
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
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 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 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
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
Anna.Kozlova 29ea8e3828 generate members when non-physical (lombok) element exist (IDEA-164829) 2016-12-05 15:19:21 +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 ea5cfbb0d9 implicitly written field: fix to register annotations (IDEA-164948) 2016-12-02 17:52:28 +01:00
peter 23cdae45fb java/groovy completion: suggest non-imported classes after new (IDEA-164468) 2016-12-02 14:32:31 +01:00
Roman Shevchenko 13148178d9 [platform] unified SimpleJavaParameters to GeneralCommandLine conversion 2016-12-02 13:34:58 +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
Tagir Valeev 1b57cda533 TerminalOperation, RedundantCastUtil: cleanup (InheritanceUtil.isInheritor(PsiType, String) used; PsiUtil.substituteTypeParameter used; more specific type used where possible) 2016-12-02 16:30:56 +07:00
peter 9da29c07e4 GenerateMembersHandlerBase: change document in write action 2016-12-02 08:17:32 +01:00
peter f9c6e11688 GenerateMembersHandlerBase: invoke cleanup outside write action 2016-12-01 20:07:12 +01:00
peter 40d1340cb2 InlineLocalHandler: invoke potentially interactive RemoveUnusedVariableFix outside write action 2016-12-01 20:07:12 +01:00
peter be0602878d CreateClassOrPackageFix: choose directory in a dialog outside write action 2016-12-01 20:07:10 +01:00
Yaroslav Lepenkin 00b4845ce7 [name hints] java parameter hints provider refactored and converted to kt 2016-12-01 19:31:43 +03:00
Alexey Kudravtsev 42b682f0d8 overridden method icon for PuppetNamespaceDefinition.subtreeChanged won't navigate 2016-12-01 12:48:21 +03: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
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
Tagir Valeev 4e919302c7 StreamToLoopInspection: support inside single-expression lambdas 2016-11-30 17:36:09 +07:00
Tagir Valeev 24882d6746 StreamToLoopInspection: unused var removed 2016-11-30 16:45:34 +07:00
Anna.Kozlova 79c62daf97 generate equals/hashcode: use provided psiClass to avoid ambiguity with inner classes (IDEA-164523) 2016-11-30 10:38:40 +01:00
Tagir Valeev c00f3ff5b0 InspectionProjectProfileManager.isInformationLevel used where applicable; StreamToLoopInspection highlights only terminal operation when highlighting is on 2016-11-30 16:35:44 +07:00
Tagir Valeev d749f3dc5a IDEA-163909 Inspection to replace computeIfAbsent returning a constant with putIfAbsent 2016-11-30 15:15:58 +07:00
peter 1e19ef0569 AddExceptionToThrowsFix: less read-only dialogs (IDEA-CR-16373) 2016-11-29 13:58:02 +01:00
peter 44f0f3f754 correct annotation operating fixes wrt read-only files
they can change either the current file or external annotations file
so they should be invoked outside write action
all callees (e.g. suppressions) should honor that
2016-11-29 13:48:40 +01:00
peter cf4ac26b5d correct read-only file handling in more java intentions 2016-11-29 13:31:06 +01:00
Tagir Valeev 3fae7edf73 IDEA-163931 Extend "Simplifiable conditional usage of Map.get()" inspection to handle case without variable assignment 2016-11-29 17:29:23 +07:00
Vladimir Krivosheev 00c58fd4a8 cleanup — deprecate ModuleRootAdapter 2016-11-29 11:24:16 +01:00
Anna.Kozlova 75376c7551 don't clear read-only status after it was cleared by BaseRefactoringProcessor before writeAction 2016-11-29 11:12:59 +01:00
Tagir Valeev 5bcd2410da Java8CollectionsApiInspection & Java8ReplaceMapGetInspection merged into Java8MapApiInspection; support method references in computeIfAbsent
fix for IDEA-163932 Map.get suggested replacement with Map.getOrDefault is misleading
2016-11-29 13:35:30 +07:00
Anna.Kozlova 6c9fe553e9 completion in interfaces: avoid default/static combination 2016-11-28 15:38:48 +01:00