Commit Graph

63 Commits

Author SHA1 Message Date
Anna Kozlova
2170b5c355 [global inspections] avoid CCE for anonymous classes in enum constants
GitOrigin-RevId: 7083ee1a97d43467d98ee5b15b122304397da0f4
2021-06-18 20:10:36 +00:00
Anna Kozlova
644bbb10dd [global inspections]: CCE
kotlin enum constant with anonymous class source corresponds to the field, not class (which is probably wrong) but here the cast is redundant anyway

GitOrigin-RevId: cf66ff194853f4d28c4987b12e8016112da199e3
2021-06-14 10:58:08 +00:00
Ilyas Selimov
937831e0de inspection-integration - exclude an edge between annotation access expression and annotation method
GitOrigin-RevId: bb7258de864e2b32529e679785d74ef145a43e33
2021-02-10 07:23:40 +00:00
Ilyas Selimov
fb0badb4cd IDEA-232566 - added an edge between annotation access expression and annotation method in the ref graph, handled the Repeatable annotation
GitOrigin-RevId: 2fd2edd464423cda801e29c9cfd9fc03af72da6c
2021-02-02 06:36:58 +00:00
Anna Kozlova
4b7aa030ff empty method inspection: skip multiple super calls(IDEA-210462), fix support unrelated defaults from super (IDEA-219569)
GitOrigin-RevId: afa37ee534e59af18c4434d058ad2a55edb7ecca
2021-01-15 11:54:06 +00:00
nik
94b05fb068 [i18n] add bundles to java, java.analysis, java.i18n modules and move some properties to them
GitOrigin-RevId: 7ce28e172d977caf53c4c570f17d17c15686f675
2020-02-12 12:42:14 +00:00
Vladimir Krivosheev
bac2b6d2f8 use java 7 API — get rid of home grown assertNotNull and notNull
GitOrigin-RevId: 4df1569fc01d15cfbe42b00a5b5edf7c1ea0f5b3
2020-02-11 10:36:25 +00:00
Alexey Kudravtsev
e81af0f0cf cleanup: remove hostile Nullable, add NotNull
GitOrigin-RevId: 802c30ee41436359655e5018667720a7a7c6890a
2020-02-05 11:06:08 +00:00
Tagir Valeev
78a91459c4 Array annotations changed to type-use style (not compilable now)
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Anna Kozlova
0e2f0f2116 same return value: don't check method lambda's return statements
GitOrigin-RevId: e8e9f961fac11c42b48722347cbaa9707f2d608d
2019-07-05 23:46:57 +03: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
Anton Makeev
a85dd1eadc Merge branch 'amakeev/gradle'
# Conflicts:
#	community/plugins/gradle/java/src/service/project/wizard/GradleModuleBuilder.java

GitOrigin-RevId: 7677c496440e29d49839174420972762c8ecc089
2019-05-17 19:14:16 +03:00
Anton Makeev
b54aaf7e4e IDEA-210281 Cleanup Gradle settings: separate Runner configurable removed
GitOrigin-RevId: adbc39121fe91beb633e125b4cf39bfe0a422e4b
2019-05-17 19:02:16 +03:00
Dmitry Batkovich
db60b80cc4 unused symbol inspection: mark method parameter used if method is used as method reference IDEA-210306
GitOrigin-RevId: 086a276669ee3dba969f8ea2334af157890594dc
2019-05-17 16:09:16 +03:00
Dmitry Batkovich
ab462cd674 same parameter value inspection should not warn if method is used in method reference expression (IDEA-207552) (follow IDEA-CR-43767) 2019-03-07 22:04:17 +03:00
Dmitry Batkovich
dc6de37979 same parameter value inspection should not warn if method is used in method reference expression (IDEA-207552) 2019-02-20 16:16:55 +03:00
Dmitry Batkovich
9c0e8e9d01 unused declaration: report enum consts as used if enum class object is used (IDEA-206125) 2019-02-04 15:39:27 +03:00
Dmitry Batkovich
8d4ec0b461 return value is the same const: do not process returns of containing methods IDEA-204977 2019-01-16 21:29:54 +03:00
Anna.Kozlova
306beee6e1 empty method: ensure super call is not removed if unrelated defaults are present (IDEA-202410) 2018-11-19 16:38:19 +01:00
nik
7f8f3bf6f2 refactor java global inspection graph: extract writable interfaces
This is needed to avoid access to package-private members in platform modules from java modules (IDEA-200277).
2018-10-11 10:29:41 +03:00
Dmitry Batkovich
913efb1fef fix UnusedDeclarationJvmTest 2018-10-08 13:13:54 +03:00
Tagir Valeev
43b199c661 JavaPsiFacade.getInstance(project).getElementFactory() -> JavaPsiFacade.getElementFactory(project) 2018-10-05 14:01:24 +07:00
Dmitry Batkovich
9f995e90a6 unused declaration: fix qualified references processing again 2018-09-28 16:23:12 +03:00
Dmitry Batkovich
2506cea718 unused declaration: use try cast instead 2018-09-28 16:23:12 +03:00
Dmitry Batkovich
99265558c7 unused declaration: do not process twice references qualified with this (IDEA-199401) 2018-09-27 19:28:55 +03:00
Dmitry Batkovich
59a9dca3fc unused declaration: fix for references from local var type (IDEA-199400) 2018-09-25 17:19:45 +03:00
Dmitry Batkovich
1ceb3aaebe unused declaration: fix enum constructor references IDEA-199293 2018-09-24 19:32:10 +03:00
Dmitry Batkovich
4b74d87090 restore bug compatibility 2018-09-24 17:43:52 +03:00
Dmitry Batkovich
7cb8bd6502 re-implement java global inspection graph using uast (add override) 2018-09-13 15:51:32 +03:00
Dmitry Batkovich
881732a529 re-implement java global inspection graph using uast (fix processing class type parameters) 2018-09-13 15:47:46 +03:00
Dmitry Batkovich
098c6318cf re-implement java global inspection graph using uast 2018-09-13 08:18:27 +03:00
Dmitry Batkovich
d49b01df10 dead code 2018-06-18 12:22:26 +03:00
Tagir Valeev
148517e767 ExpressionUtils#isVoidContext extracted and used where applicable
Fixes IDEA-193290 "Mismatched collection query and update": no warning when update in lambda
2018-06-05 13:51:17 +07:00
Dmitry Batkovich
1d07fecaf6 same parameter value inspection should not report anything if value is not accessible in method context 2018-05-19 09:17:44 +03:00
Anna.Kozlova
5b2cc36825 redundant return type: method reference/expr lambda with void SAM
global inspection, IDEA-189010
2018-03-28 13:38:28 +02:00
Tagir Valeev
88bc353da4 PsiExpressionList: added getExpressionCount() and isEmpty()
Optimized implementations in PsiExpressionListImpl, usages replaced where possible
2018-01-26 12:27:11 +07:00
Anna.Kozlova
5f3f0f81a5 method return type in not used: fix for literal expressions(IDEA-184798) 2018-01-11 13:34:40 +01:00
Dmitry Batkovich
5a3de53477 inspection view: do not show empty package node under module-info node (re-fix for ec0783f) 2017-11-03 13:00:06 +01:00
Dmitry Batkovich
ec0783f0a1 inspection view: do not create empty package nodes when grouping by directory is enabled + some module-info.java contains problems 2017-11-01 05:33:16 +01: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
Anna Kozlova
350f588c09 unused declaration: take refs from literals into account (IDEA-172447) 2017-05-16 09:08:10 +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
Alexey Kudravtsev
95f7030993 fixed terrible data races like in EA-100927 - AIOOBE: RefMethodImpl.markExtended 2017-05-09 15:49:40 +03:00
Alexey Kudravtsev
8ca9a64189 cleanup 2017-04-14 15:20:30 +03:00
Anna Kozlova
8b549a9397 unused declaration: ensure refs are collected from method's parameter list as well as it's body (IDEA-158182) 2016-09-06 11:58:44 +03:00