Commit Graph
135 Commits
Author SHA1 Message Date
Dmitry Batkovich ce83d4b754 remove unused GlobalJavaInspectionTool 2017-11-14 17:40:17 +03:00
Nicolay Mitropolsky 8f0a4e464f JvmCommonIntentionActionsFactory: to be removed in 2018.1
hopefully of course
2017-11-10 15:15:57 +01:00
Yann Cébron 507cfd7f72 [uast] AbstractBaseUastLocalInspectionTool: cleanup 2017-11-10 12:03:20 +01:00
Daniil Ovchinnikov 2ce529200b [jvm-lang] cleanup
- remove old JvmElementActionsFactory#createAddConstructorActions;
- remove implementations of above method;
- remove MemberRequest.Constructor;
- remove old actions.kt#createConstructorActions.
2017-11-09 18:52:51 +03:00
Daniil Ovchinnikov 02a8f32024 [jvm-lang] port previous Create Constructor clients to the new API 2017-11-09 18:52:51 +03:00
Daniil Ovchinnikov dca6f89768 [jvm-lang] add couple helper functions 2017-11-09 18:52:51 +03:00
Daniil Ovchinnikov f8a6289bae [jvm-lang] java: use interlanguage Create Constructor actions 2017-11-09 18:52:50 +03:00
Daniil Ovchinnikov 8c6f69ca9d [jvm-lang] constructor rendering API 2017-11-09 18:52:50 +03:00
Daniil Ovchinnikov 71a8b4b52b [jvm-lang] extract ExpectedParameter to separate file 2017-11-09 18:52:50 +03:00
Daniil Ovchinnikov 52da364caf [jvm-lang] cleanup
- remove old JvmElementActionsFactory#createAddMethodActions;
- remove implementations of above method;
- remove MemberRequest.Method;
- remove actions.kt#createMethodAction.
2017-10-09 22:31:58 +03:00
Dmitry Batkovich 071e4d5609 make BaseJavaBatchLocalInspectionTool unused inside our codebase 2017-10-05 12:32:47 +03:00
Dmitry Batkovich 86af7d065b notnull 2017-10-05 12:26:52 +03:00
Roman Shevchenko 5b431473dd [java] inlines a pair of superfluous base inspection classes 2017-10-04 19:00:57 +02:00
Dmitry Batkovich 0c19a4c695 inspection view: allow specify container element for every inspection for given language (IDEA-179773) 2017-09-29 13:49:39 +03:00
Daniil Ovchinnikov 58d193ad7f [jvm-lang] port createVoidMethodIfFixPossible 2017-09-25 15:16:15 +02:00
Tagir Valeev dede7b30f7 IDEA-113585 Cast to Type quick fix creates code that doesn't help 2017-09-19 16:10:34 +07:00
Daniil Ovchinnikov 0f0a38f50e [jvm-lang] provide target substitutor via field request 2017-09-18 14:40:19 +02:00
Daniil Ovchinnikov 192fbb2e74 [jvm-lang] update docs in CreateFieldRequest 2017-09-12 17:45:05 +02:00
Daniil Ovchinnikov 8e5371cd83 [jvm-lang] use ExpectedType in CreateFieldRequest 2017-09-12 16:51:58 +02:00
Daniil Ovchinnikov 6eed3ff528 [jvm-lang] add ExpectedType, use it in CreateMethodRequest 2017-09-12 16:21:38 +02:00
Daniil Ovchinnikov 9bc4c75cee [jvm-lang] provide target substitutor via method request 2017-09-12 15:18:20 +02:00
Anna Kozlova 26b406cb41 redundant throws: move collecting unthrown exceptions to annotator
this should make running inspections without redundant throws much faster as method bodies won't be checked for thrown exceptions
2017-09-11 12:57:31 +03:00
Daniil Ovchinnikov 51395418c1 [jvm-lang] port JavaFX event handler reference fixes 2017-09-07 17:25:49 +03:00
Daniil Ovchinnikov 9b6dda8886 [jvm-lang] add ability to define method annotations 2017-09-07 17:25:48 +03:00
Daniil Ovchinnikov 9e797ba058 [jvm-lang] use interlanguage Create Method actions in Java
Available via 'ide.interlanguage.fixes' registry key.
- Generate Create Method requests
- Collect actions from factories
- Register actions
2017-09-06 21:24:12 +03:00
Daniil Ovchinnikov f3ab2aa326 [jvm-lang] method rendering API 2017-09-06 21:24:12 +03:00
Daniil Ovchinnikov a4b3f31ebe [jvm-lang] extract check if new actions are enabled 2017-08-31 15:41:14 +03:00
Nicolay Mitropolsky acd767dc24 JvmElementActionsFactory UAST-fallback repaired 2017-08-30 17:20:28 +03:00
Daniil Ovchinnikov ecf65d0924 [jvm-lang] add documentation for CreateFieldRequest 2017-08-28 14:40:26 +03:00
Daniil Ovchinnikov dc1d54803f [jvm-lang] use interlanguage Create Field actions in Java
Available via 'ide.interlanguage.fixes' registry key.
- Generate Create Field requests
- Collect actions from factories
- Register actions
As for now all actions become directly availably via alt+Enter.
2017-08-28 13:33:37 +03:00
Daniil Ovchinnikov 931f706bf4 [jvm-lang] add method and request for interlanguage field rendering 2017-08-28 13:33:37 +03:00
Daniil Ovchinnikov 5b6288b839 mark whole com.intellij.lang.jvm.actions package as @Experimental 2017-08-28 13:33:37 +03:00
Daniil Ovchinnikov 176be0e190 make JvmElementActionsFactory a regular EP instead of a language EP 2017-08-28 13:33:36 +03:00
Tagir Valeev 661388f0c2 WrapWithAdapterMethodCallFix replaces individual cases
WrapArrayToArraysAsListFix, WrapLongWithMathToIntExactFix, WrapStringWithFileFix are united into WrapWithAdapterMethodCallFix. Also Paths.get(), Collections.singleton(), Collections.singletonList(), Arrays.stream() wrappers added

Fixes IDEA-175129 Suggest to wrap a value with `Collections.singleton*()`
2017-08-25 14:33:41 +07:00
Nicolay Mitropolsky 9e4153f60f JvmCommonIntentionActionsFactory switched to com.intellij.lang.jvm.* api and renamed to JvmElementActionsFactory
old `JvmCommonIntentionActionsFactory` reverted to "UAST"-state and deprecated
2017-08-03 16:59:04 +03:00
Nicolay Mitropolsky cfeb6c005e JvmCommonIntentionActionsFactory switched from UAST to @JvmCommon-annotated API 2017-07-05 19:37:23 +03:00
Roman Shevchenko ab1017799a Cleanup (replaces a tuple with a data class; formatting) 2017-07-04 11:16:38 +02:00
Roman Shevchenko 6384ced243 [java] overloads in Java module system (IDEA-CR-22413) 2017-07-03 15:26:22 +02:00
Pavel Dolgov 67058ae907 Java: Support Jigsaw modules in calculation of class usages and visibility - added inspection setting for exported packages (IDEA-169200, IDEA-169204) 2017-06-30 13:24:19 +03:00
Roman Shevchenko a5116c75cc [java] module accessibility check at resolve (IDEA-168880) 2017-06-28 21:19:02 +02:00
Anna Kozlova 352770463f navigation to already defined variable (IDEA-162316) 2017-06-28 16:10:43 +02:00
Anna Kozlova 0314bd07e8 qualify unresolved refs with static accessor fixes (IDEA-168929) 2017-06-27 13:20:39 +03:00
Pavel Dolgov d6120dd6a2 Java: Support Jigsaw modules in calculation of class usages and visibility (IDEA-169200, IDEA-169204) 2017-06-27 12:36:11 +03:00
Tagir Valeev fb6965b6b9 ExtractSideEffectsFix -> DeleteSideEffectsAwareFix; i18n
Now intention availability logic is moved from HighlightUtil to DeleteSideEffectsAwareFix
Review: IDEA-CR-21623
2017-06-08 12:15:20 +07:00
Tagir Valeev 535c113dba IDEA-172877 Provide a quick-fix on 'Not a statement' error message 2017-06-07 15:27:49 +07:00
Anna Kozlova 02c718aae8 replace assignment with comparison in condition exps (IDEA-173860) 2017-06-06 19:07:58 +03:00
Nicolay Mitropolsky 00e6afd5e3 JvmCommonIntentionActionsFactory api refactoring 2017-05-31 12:11:46 +03:00
Nicolay Mitropolsky 9f87720a50 KT-11980 JvmCommonIntentionActionsFactory now has a createAddCallableMemberActions method to create constructors and methods 2017-05-29 14:12:38 +03:00
Nicolay Mitropolsky ae29b7b081 KT-11906 `JvmCommonIntentionActionsFactory#createAddBeanPropertyActions' support 2017-05-22 13:20:31 +03:00
Anna Kozlova 987caaf26d provide this(); fix when constructor requires super call (IDEA-151335) 2017-05-18 10:50:55 +03:00