Commit Graph
2241 Commits
Author SHA1 Message Date
Tagir Valeev 97cdb4cdd5 IDEA-169503 Integral range tracking for variables inside dataflow analysis 2017-03-13 16:02:48 +07:00
Bas Leijdekkers ca51903f4e make suppress intentions work in module-info.java files 2017-03-12 17:08:13 +01:00
Bas Leijdekkers d803164a12 make @SuppressWarnings work in module-info.java files 2017-03-12 17:08:13 +01:00
Bas Leijdekkers 5e8b71d109 Add module-info.java checking to "Declaration has problems in Javadoc references" inspection 2017-03-12 17:08:12 +01:00
Roman Shevchenko a984dc4eb3 [java] highlights duplicate 'opens' statements (IDEA-169015)
In addition, provides a quickfix for duplicate exports/opens targets.
2017-03-09 17:57:52 +01:00
Roman Shevchenko 7ba6c5dab1 [java] highlights external implementations in 'provides' (IDEA-169193) 2017-03-09 11:49:13 +01:00
Anna.Kozlova 92d60ede85 enclosing instance check: don't check the inheritance for the class with extends/implements itself 2017-03-08 19:15:20 +01:00
peter 3849e3c228 dfa: fix false positive when throwing parameter
remove complicated code that the tests pass without
2017-03-08 16:02:36 +01:00
Roman Shevchenko a08786331d [java] tooltips for module-info error messages (IDEA-169101) 2017-03-08 14:38:11 +01:00
Roman Shevchenko 486bd9398f [java] highlights non-static implementations in 'provides' (IDEA-169205) 2017-03-08 14:16:42 +01:00
Anna.Kozlova 0fa0b96dc6 no enclosing instance error for top level classes (IDEA-169088) 2017-03-08 12:37:00 +01:00
Roman Shevchenko 74daf8d522 [java] improves "unsupported language level" message (IDEA-168859) 2017-03-06 11:27:27 +01:00
Anna.Kozlova 5328c5fa2c final field initialization: don't treat anonymous args as inner classes (IDEA-168651) 2017-03-06 10:28:45 +01:00
peter a0cae94e87 disable "call always fails according to method contract" in tests (IDEA-168613)
1. test might check precisely this failure
2. even if not, the test will fail anyway and the mistake will be obvious quite soon
2017-03-01 16:04:44 +01:00
Tagir Valeev 1e75349a17 InferredAnnotationsManagerImpl: do not use getDeclarationScope (find parent method explicitly); EnumSet.of hardcoded (IDEA-CR-18680) 2017-02-28 18:22:29 +07:00
Alexey Kudravtsev 76041465dc cleanup 2017-02-28 13:11:37 +03:00
Tagir Valeev ff4a8a824a InferredAnnotationsManagerImpl: hardcoded not-nullness of collection factory methods
(there are too many overloads, so adding them into annotations.xml is impractical)
2017-02-28 16:43:40 +07:00
Dmitry Avdeev 956bd308aa IDEA-168759 AssertionError exception on using jsp files with classes 2017-02-27 18:46:26 +03:00
peter 38776ed827 fix dfa when a notnull parameter is assigned to null 2017-02-27 14:04:04 +01:00
peter 8b0161fdad more diagnostics for EA-96901 - assert: FileTrees.withGreenStub 2017-02-25 12:55:46 +01:00
peter 438046cac2 NullityAnnotationModifier cleanup 2017-02-24 15:32:09 +01:00
peter 1163a8e717 support type inference with nullity annotations across different language levels 2017-02-24 15:27:24 +01:00
peter b536857a22 support junit5's assertNotNull in dfa (IDEA-168552) 2017-02-23 15:59:04 +01:00
Alexey Kudravtsev 8fd72fd9d6 cleanup 2017-02-22 17:40:00 +03:00
Alexey Kudravtsev 8d3b62d33d more diagnostics for EA-95877 2017-02-21 15:54:31 +03:00
Roman Shevchenko 0297a479fc [java] adds module "strengthening" quick fix 2017-02-21 11:51:24 +01:00
Roman Shevchenko 078215e25a [java] highlights 'opens' statements in weak modules 2017-02-21 10:55:56 +01:00
Roman Shevchenko 98d2e29dfa [java] fixes Javadoc inspection false positive on @see tag (IDEA-168195) 2017-02-20 20:06:58 +01:00
Alexey Kudravtsev 48f1830475 do not show tooltips for INFORMATION infos for some inspections 2017-02-20 15:52:49 +03:00
Alexey Kudravtsev 18547af62e do not show tooltips for INFORMATION infos for some inspections 2017-02-20 15:52:49 +03:00
Roman Shevchenko 68a6a503da [java] highlighting for deprecated module usages 2017-02-20 13:47:09 +01:00
Roman Shevchenko 1344f56dcb Cleanup (warnings; formatting) 2017-02-20 13:43:32 +01:00
Roman Shevchenko ddf59fe186 Merge remote-tracking branch 'origin/master' 2017-02-17 20:17:00 +01:00
Roman Shevchenko c4111f32cf [java] module naming inspection 2017-02-17 19:58:32 +01:00
Anna.Kozlova 65ca530d2d process enum constant resolve separately (IDEA-162975)
EA-97195 - assert: PsiEnumConstantImpl.resolveMethodGenerics
2017-02-17 19:37:21 +01:00
Roman Shevchenko d3a7f869a2 [java] makes "module exports to itself" inspection delete degenerate statements 2017-02-17 15:57:24 +01:00
Roman Shevchenko 79ed40d10c [java] adds comment tracking to 'delete element' intention/quick fix 2017-02-17 15:53:26 +01:00
Roman Shevchenko 7e97671afe [java] extends "module exports to itself" inspection on 'opens' statements 2017-02-17 14:14:48 +01:00
Roman Shevchenko b66aab523b [java] more generic 'delete element' intention/quick fix 2017-02-17 13:22:37 +01:00
Roman Shevchenko e57aeee8ea [java] provider() methods in module service implementations 2017-02-16 20:39:26 +01:00
Roman Shevchenko d32bc8e9a7 [java] exports/opens target modules are optional 2017-02-16 18:25:49 +01:00
Roman Shevchenko 644c490d86 [java] highlighting for 'opens' statements 2017-02-16 18:16:45 +01:00
Roman Shevchenko 9f94159536 Cleanup (warnings; formatting) 2017-02-16 18:16:37 +01:00
Roman Shevchenko 496c8de717 [java] highlights package statements in module files 2017-02-16 14:21:40 +01:00
Roman Shevchenko 5352e315e0 Cleanup (minor optimization) 2017-02-16 13:39:01 +01:00
Tagir Valeev 12a7946c6f DfaMemoryStateImpl#applyIsPresentCheck: ignore unknown state variables (fixes EA-96944 - assert: DfaMemoryStateImpl.setVariableState) 2017-02-16 11:54:10 +07:00
Tagir Valeev 477f3efd32 SideEffectChecker: ignore side effects in asserts; MismatchedStringBuilderQueryUpdate: support any kind of side-effect free statements (not only ifStatement) (IDEA-CR-17743) 2017-02-16 10:46:08 +07:00
Roman Shevchenko ab3b33e067 [java] support for new module-info syntax and .class file format 2017-02-15 20:39:15 +01:00
Tagir Valeev d0ebe3d211 DfaMemoryStateImpl now does not track nested stack-top closures: responsibility is moved to DataFlowRunner (IDEA-CR-18166) 2017-02-15 14:09:47 +07:00
peter cc237c0a58 make it explicit that nullity/contract inference from source works only with PsiMethodImpl
inspired by https://github.com/JetBrains/intellij-community/pull/511
2017-02-14 10:22:39 +01:00