Commit Graph

68 Commits

Author SHA1 Message Date
Bas Leijdekkers
a35a9f91ba Java: improve error highlighting for unknown annotation method
GitOrigin-RevId: 6fdb6e2f397280cf4795cbd09ddcc1461a5897ff
2024-07-30 22:37:25 +00:00
Bas Leijdekkers
1bdb332af2 Java: better error recovery on annotation parsing (IDEA-209573)
GitOrigin-RevId: a600121ecbd9fa6338237f0d3802486c7f8a5656
2024-07-30 22:37:25 +00:00
Bas Leijdekkers
89c8dc03ed [java] better error message on @interface throws/extends list not allowed (IDEA-350501)
GitOrigin-RevId: 1f89c42ac5ffda1d026f6e40cb922b08a095d1dc
2024-04-08 09:54:38 +00:00
Mikhail Pyltsin
87dc3f3fbf [java-highlighting] IDEA-289314 Missing highlighting for nested type annotations on static types
- annotations are checked recursively

GitOrigin-RevId: a8343f6bbfbf2dd39b29dad8ce1e989e71a0e549
2023-11-13 17:04:49 +00:00
Anna Kozlova
15a9ef4789 [java] fix parsed TYPE_USE annotation applicability (IDEA-291306)
GitOrigin-RevId: cb735529eae2adcfd9414e4921e9569a75018772
2022-04-07 17:46:05 +00:00
Anna Kozlova
575105fada [java] forbid receiver parameters in annotation methods (IDEA-280218)
GitOrigin-RevId: befe655ef06c47f48e8de5c696bbd8ae28b4f7be
2021-10-15 08:41:09 +00:00
Anna Kozlova
2ea4beec8e [java] repeatable annotations: check duplicated container annotations (IDEA-274553)
GitOrigin-RevId: 44ddf1c7fd34380627dbbc7c5d9343d7ffdde8a6
2021-07-28 19:51:37 +00:00
Anna Kozlova
4a05392295 [java] repeatable annotations: exceptions for target type containment rules (IDEA-274550)
GitOrigin-RevId: 27e1b953cad4f046725b23c68ac4ef3c1b3eaa4c
2021-07-28 19:51:35 +00:00
Tagir Valeev
7a0831408f [java-highlighting] IDEA-264182 Do not report 'Annotations are not allowed here' in unterminated parameter list
GitOrigin-RevId: 6c6aff57643ec10b1ba2c44b52e6db352d43513a
2021-03-12 13:26:52 +00:00
Anna Kozlova
7c9f254340 java: reject non-TypeName qualifiers before constant field refs (IDEA-262804)
GitOrigin-RevId: 1aa7a1dbc1c24ad5d4af5c271f454aaa92cefcde
2021-02-25 12:37:45 +00:00
Anna Kozlova
888b1151d6 java: report error if repeatable annotation has Documented/Inherited annotation and its container doesn't (IDEA-256253)
GitOrigin-RevId: d6dab9a587b2e4d7663a5b0c44ecf65bba9113bd
2020-12-30 19:38:19 +00:00
Anna Kozlova
576590686d java: fix repeatable annotations check when non-annotation type is passed as value (IDEA-250935)
GitOrigin-RevId: 7f819cfa97ac8fe49e58e3dc2e4c13e42f724963
2020-09-21 13:36:34 +00:00
Anna Kozlova
212ef2f70e java: type_use annotation applicability to var type checked (IDEA-248364)
GitOrigin-RevId: 2c3b97c897e0f995137658c3372d1899c7dc39fe
2020-08-17 20:55:24 +00:00
Anna Kozlova
cc9907aee7 java: allow comments before receiver parameter (IDEA-245721)
GitOrigin-RevId: 98f193dcd8836321639b647693156315b4bced83
2020-07-15 07:27:51 +00:00
Anna Kozlova
947bb691fe annotation method: detect default value based on "default" keyword (IDEA-237774)
GitOrigin-RevId: 64be4b28fc7fe9e79aae58ddba140bd65d56c2ef
2020-04-16 19:41:33 +00:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Aleksey Rostovskiy
185284cee6 get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
2019-05-27 15:08:08 +03:00
Alexandr Suhinin
9215f4240b [duplicates] enable duplicates analysis in PyCharm/WebStorm/PhpStorm/RubyMine
GitOrigin-RevId: 1545b79fdca4888f4b94f47f22703fd37694fa7a
2019-05-27 15:07:30 +03:00
Anna Kozlova
5d96e5d9f0 annotation highlighting: skip unresolved attribute highlighting for non-annotation types
GitOrigin-RevId: 4b705957a414cc90f2b952595f6d6dfbb880f876
2019-05-23 22:05:32 +03:00
Roman Shevchenko
35ca6e9efd [java] validates container annotation "concreteness" (IDEA-201354) 2018-11-09 22:09:35 +01:00
Roman Shevchenko
547f2b3967 [java] skips reference check for array annotations (IDEA-195612) 2018-07-16 18:13:38 +02:00
Roman Shevchenko
9f05380c48 [java] merges language level name and JDK version description 2018-01-18 13:54:45 +01:00
Roman Shevchenko
c87ce5bb69 [java] correct receiver parameter type check (IDEA-175906) 2017-07-17 15:10:44 +02:00
Roman Shevchenko
80bd33fc56 [java] type annotation highlighting on type parameters (IDEA-174317) 2017-06-30 14:38:56 +02:00
Roman Shevchenko
2d8c4a0e3c [tests] better test for module annotations (IDEA-169410) 2017-03-15 14:32:41 +01:00
Roman Shevchenko
74daf8d522 [java] improves "unsupported language level" message (IDEA-168859) 2017-03-06 11:27:27 +01:00
Roman Shevchenko
13d20c3859 [java] accepts annotations on modules 2017-02-20 11:52:06 +01:00
Anna.Kozlova
a59edc4e4a accessibility check for annotation parameters: treat parameters as they are outside the class (IDEA-165904) 2016-12-27 14:47:58 +01:00
Anna Kozlova
d4e7271498 annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106) 2016-09-15 18:35:33 +03:00
Roman Shevchenko
f2626b9024 [java] fixes receiver highlighting in local classes (IDEA-158752) 2016-07-20 16:30:11 +02:00
Roman Shevchenko
fe7ba298f6 Merge remote-tracking branch 'origin/master' 2015-07-22 18:26:08 +02:00
Roman Shevchenko
f7f0a5c0c4 [java] adds support for Java 9's improved try-with-resources (IDEA-140266)
PSI, parser, highlighting, exception analysis, control flow, completion.
2015-07-22 16:28:39 +02:00
Anna Kozlova
7677f61dc5 invalid annotation type detection based on type element (IDEA-142884) 2015-07-21 18:36:10 +02:00
Roman Shevchenko
83674908b6 IDEA-142416 (fixed parsing of annotated fully-qualified types in assignment statements) 2015-07-09 16:29:04 +03:00
Roman Shevchenko
0888e688fd Cleanup (unneeded test parameters) 2015-07-02 16:06:52 +03:00
Roman Shevchenko
fd0061d246 java: receiver parameter highlighting 2015-07-02 15:29:22 +03:00
Roman Shevchenko
2c738eea52 IDEA-136162 (type annotations in anonymous classes) 2015-02-09 19:23:15 +01:00
Anna Kozlova
d98a3da35a enum attribute values must be a constant (JLS 9.7.1 IDEA-132747) 2014-11-12 19:38:00 +01:00
Anna Kozlova
0bcd4c8491 testdata for IDEA-25949 2014-08-18 21:45:30 +04:00
Anna Kozlova
2a41b7a9c3 annotation type: error for duplicated methods (IDEA-128675) 2014-08-18 14:36:00 +04:00
Roman Shevchenko
322e539fc5 IDEA-127077 (highlighting test) 2014-07-21 16:08:23 +02:00
Roman Shevchenko
cfcc34be5f IDEA-121251 (stray annotation highlighted) 2014-02-28 19:33:48 +01:00
Roman Shevchenko
9495ef2667 IDEA-119396 (be picky about unfinished annotated new array expressions) 2014-02-19 19:31:45 +01:00
Alexey Kudravtsev
ad661d92e4 correct level in highlighting:
highlight element X only when visiting X or its ascendant
2014-02-10 20:03:58 +04:00
Roman Shevchenko
393d831d3a IDEA-117391 (annotation highlighting fixed) 2013-12-02 19:04:42 +01:00
Roman Shevchenko
aec23d1dab IDEA-105110 (check repeatable annotation container applicability) 2013-04-16 16:27:09 +02:00
Roman Shevchenko
8110c941f6 Repeatable annotations highlighting text corrected 2013-04-16 16:27:08 +02:00