Commit Graph
92 Commits
Author SHA1 Message Date
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
Alexey Kudravtsev 4a4626c750 removed default file header, because it adds no information but subtracts attention and space 2017-05-12 14:02:24 +03:00
Nicolay Mitropolsky a38fcecefe IDEA-85507: JavaCommonIntentionActionsFactory#createAddMethodAction implementation 2017-05-09 10:16:23 +02:00
Nicolay Mitropolsky d1123d14fc JvmCommonCodeModifications renamed to JvmCommonIntentionActionsFactory 2017-05-02 17:04:37 +03:00
Nicolay Mitropolsky 77a5d567be JvmCommonCodeModifications EP as registry for language-abstracted modifications for creating language-independent quickfixes + ImplicitSubclassInspection uses it 2017-05-02 13:17:23 +03:00
Anna.Kozlova c0b06a8f2a java 8: access static method through instance variable: don't show warning, error is enough; add quick fix for an error same as for inspection 2017-04-07 18:20:18 +02:00
Dmitry Jemerov 1cdfe7aa92 Enable registering inspections for a MetaLanguage 2017-04-06 17:03:38 +02:00
Dmitry Jemerov b2f5993e47 Support creating smart pointers to UAST elements 2017-04-06 15:19:42 +02:00
Dmitry Jemerov 546374f073 Implement base class for UAST-based inspections 2017-04-06 15:19:42 +02:00
Dmitry Jemerov d135f3fc82 Register UAST services and extensions 2017-04-06 15:19:42 +02:00
Roman Shevchenko 79ed40d10c [java] adds comment tracking to 'delete element' intention/quick fix 2017-02-17 15:53:26 +01:00
Roman Shevchenko ab3b33e067 [java] support for new module-info syntax and .class file format 2017-02-15 20:39:15 +01:00
Dmitry Batkovich aa67d1e6e2 suggest wrap string expression with java.io.File when it's expected IDEA-167566 2017-02-09 12:19:11 +03:00
Vladimir Krivosheev a431a59ca6 UISettings#SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY isn't saved, part 1 2017-01-30 15:51:21 +01:00
Tagir Valeev 8f904a0d06 IDEA-166827 Quick-fix to insert SAM-method call 2017-01-23 12:55:51 +07:00
Vladimir Krivosheev 446b2b18bf BaseState — reset modification count on load state
Module root model modification count cannot be computed on time of loading. Because library model is not yet loaded (and we must avoid using it during load. But reason of changed state is not library model, but language level model — BaseState increments counter during load. And after load modification count is greater than 0. To avoid this issue, we should reset modification count after deserialization
2017-01-16 16:36:00 +01:00
Anna Kozlova 335e362386 fix tests 2017-01-13 16:47:42 +01:00
Vladimir Krivosheev 305b1f45d7 fix compilation 2017-01-13 16:16:57 +01:00
Vladimir Krivosheev ca6c5d0aea IDEA-166461 Cannot revert module language level to 1.8
Introduce StoredProperty and BaseState as approach to simplfy creating trackable (modified, differs from default) state classes.
2017-01-13 13:46:39 +01:00
Vladimir Krivosheev 908b9bc0e1 cleanup — default implementation of languageLevelsChanged 2017-01-12 11:52:01 +01:00
Pavel Dolgov 26a7739891 Java: Implemented the quick-fix Collection.toArray() that is offered in the context where an array is required but a collection is provided (IDEA-163341) 2017-01-11 16:43:18 +03:00
Alexey Kudravtsev ffc41b19b7 <code> replaced with {@code} 2016-12-08 19:42:17 +03:00
Anna.Kozlova ea5cfbb0d9 implicitly written field: fix to register annotations (IDEA-164948) 2016-12-02 17:52:28 +01:00
Pavel Dolgov 0ba6caa000 Java: Check if 'java.base' is explicitly required in the inspection "Redundant 'requires' statement in module-info". Minor refactoring of RefJavaModule, to make the inspection code more straightforward. (IDEA-163139) 2016-12-01 13:29:10 +03:00
Pavel Dolgov 9049591435 Java: Don't traverse the project twice in the global inspection "Redundant 'requires' statement in module-info" (IDEA-163139) 2016-11-25 13:35:45 +03:00
Pavel Dolgov a624c87488 Java: Don't use PSI elements in the global inspection "Redundant 'requires' statement in module-info", tests added (IDEA-163139) 2016-11-24 15:14:47 +03:00
Pavel Dolgov ea457179df Java: Store Java modules in RefJavaManager for the inspection "Unused 'requires' statement in module-info" (IDEA-163139) 2016-11-22 14:10:31 +03:00
Pavel Dolgov ffa2844520 Java: DRAFT Global inspection "Unused 'requires' statement in module-info" (IDEA-163139) 2016-11-22 14:10:31 +03:00
Pavel Dolgov caa6b89771 Java: RefJavaModule for inspection "Unused 'requires' statement in module-info" (IDEA-163139) 2016-11-22 14:10:31 +03:00
Pavel Dolgov ecee694ed9 Java: Added test for the global inspection "Unused 'requires' statement in module-info" (IDEA-163139) 2016-11-22 14:10:31 +03:00
Anna.Kozlova ccb4af4ed9 Revert: deadlock with search under ref table lock (IDEA-161849) (11beb1709d)
no search is performed inside isTestCase anymore
2016-10-25 14:14:57 +02:00
Alexey Kudravtsev cf5b631d63 cleanup 2016-10-24 15:11:30 +03:00
Anna.Kozlova 11beb1709d deadlock with search under ref table lock (IDEA-161849) 2016-10-24 10:55:38 +02:00
Dmitry Batkovich 5ade56930f AbstractBaseJavaLocalInspectionTool#getProblemElement should not return PsiTypeParameter 2016-08-09 19:28:58 +03:00
Pavel Dolgov 969585320b Java inspection: Added @NotNull and @Nullable in QuickFixFactory methods. (IDEA-158456, IDEA-157727) 2016-07-20 16:04:27 +03:00
Pavel Dolgov 3773948686 Java inspection: Added a fix for single-value annotations where the annotation doesn't have a 'value()' method and therefore "Expand Annotation to Normal Form" fix couldn't be applied (IDEA-158456, IDEA-157727) 2016-07-20 13:33:13 +03:00
Roman Shevchenko 4aec6bb8fb Cleanup (unneeded implementation) 2016-07-13 14:12:02 +02:00
Anna.Kozlova 11f1b71835 inconsistent language level: avoid LocalQuickFix when QuickFix is expected (IDEA-156375) 2016-07-11 18:05:00 +02:00
Pavel Dolgov d50a5c7a07 Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" (IDEA-124751) 2016-07-01 16:12:36 +03:00
Roman Shevchenko 7a29eddeca Cleanup (formatting) 2016-06-29 21:07:43 +03:00
Dmitry Batkovich fa21ae9aaf inspection tool window: do not make a mess from RefClass and RefImplicitConstructor 2016-05-20 18:05:47 +03:00
Dmitry Batkovich 6f49be7fcc wrap with optional IDEA-122553 2016-03-25 13:50:03 +03:00
Dmitry Batkovich 6afbed569a quick fix which adds exception from field initializer to constructor signature (IDEA-142284) 2015-11-13 15:59:53 +03:00
Dmitry Batkovich fc02e0b826 WrapLongWithMathToIntExact intention checks availability inside of intention (based on IDEA-CR-6351) 2015-10-29 18:18:55 +03:00