Commit Graph
10919 Commits
Author SHA1 Message Date
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
Anna.Kozlova 5098bf49fc completion for private modifier in java 9 interfaces, hide 'static' from completion in java 6 2016-11-28 15:38:48 +01:00
Dmitry Batkovich 32f1bfda85 inspection view: cleanup (deadcode) 2016-11-28 15:41:56 +03:00
Anna.Kozlova 01bf7bfecd write access for elements which probably differ from the current file 2016-11-28 11:47:06 +01:00
Bas Leijdekkers 580d727678 introduce RefactoringQuickFix to reduce boilerplate 2016-11-28 11:29:39 +01:00
Roman Shevchenko 7744df770b [java] NPE on composing module entry fixes (IDEA-164553) 2016-11-25 20:03:33 +01:00
Anna.Kozlova 4749a91268 optimize imports: resolve conflicts with inner classes on-demand imports (IDEA-59199; IDEA-78746) 2016-11-25 19:31:44 +01:00
Anna.Kozlova e5a151730e write action is taken explicitly after dialog is shown 2016-11-25 19:31:44 +01:00
Anna.Kozlova 57bd0325ef copy also nullable annotations when create constructor parameter from field (IDEA-164493) 2016-11-25 12:50:54 +01:00
Tagir Valeev d8decbf7ea TerminalOperation: TypeConversionUtil.isPrimitive used (IDEA-CR-16207) 2016-11-25 16:29:57 +07:00
Anna.Kozlova c45ee97f93 optimize imports: check accessibility before expanding on-demand to single-static-import (IDEA-157833) 2016-11-25 09:56:52 +01:00
Anna.Kozlova 261e309dd7 import static: insert single-static-import if multiple on-demand imports with corresponding constants are available leading to ambiguity reference 2016-11-25 09:56:52 +01:00
Anna.Kozlova 83bb640734 ensure inserted single-static-import when conflicting on-demand imports are presented (IDEA-155031) 2016-11-25 09:56:52 +01:00
Anna.Kozlova 3e13378341 optimize imports: don't collapse into on-demand when result in ambiguity 2016-11-25 09:56:52 +01:00
peter 281b83003f java intentions/fixes 3: make files writable outside write action 2016-11-25 09:11:25 +01:00
peter bc13ec6e23 java intentions 1: make files writable outside write action 2016-11-25 08:44:54 +01:00
Tagir Valeev b1cb8f37b2 TerminalOperation: PsiType.INT.equalsToText, etc. used (IDEA-CR-16207) 2016-11-25 10:43:52 +07:00
Yaroslav Lepenkin f846c43145 [Parameter Hints] builder methods only ones with single param 2016-11-24 14:25:18 +03:00