Commit Graph
10908 Commits
Author SHA1 Message Date
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
Tagir Valeev c2e815fc97 IDEA-163405 Migration from Stream API back to for loops: iteration#2 2016-11-24 18:15:51 +07:00
Roman Shevchenko 0017c2784a [java] JDK9 doc URL 2016-11-24 11:51:45 +01:00
Roman Shevchenko 66d788a4e0 Merge remote-tracking branch 'origin/master' 2016-11-23 19:59:26 +01:00
Roman Shevchenko b830fac6f5 [java] module-info template, done right (IDEA-164010) 2016-11-23 19:56:08 +01:00
Anna.Kozlova 399fdcc61c write access (IDEA-164370) 2016-11-23 19:32:25 +01:00
peter 1ada126a76 implement methods in a transaction after arg template completion (EA-92157 - assert: MemberChooser.show) 2016-11-23 19:13:21 +01:00
Roman Shevchenko 464c1b85af Merge remote-tracking branch 'origin/master' 2016-11-23 15:08:24 +01:00
Anna.Kozlova 1ce98c3d83 fix dialog from write action 2016-11-23 14:55:52 +01:00
Roman Shevchenko e13571a439 [java] module-info template according to platform's expectations 2016-11-23 14:16:45 +01:00
Tagir Valeev 0f7c78a5a6 IDEA-163991 ifPresent is not suggested when value is not used inside expression; OptionalIsPresentInspection uses CommentTracker now 2016-11-23 17:26:57 +07:00
Anna.Kozlova fb04c2169b extract lambda -> method reference to code style settings 2016-11-22 20:22:29 +01:00