Commit Graph

40 Commits

Author SHA1 Message Date
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
Anna Kozlova
cd6878119f unused declaration: ensure refs on implicit constructor (IDEA-158585) 2016-08-24 21:16:13 +03:00
Anna Kozlova
911100e0b5 replace primitive == comparisons with .equals 2015-11-06 18:28:20 +01:00
Anna Kozlova
c26cc82486 notify about refs to foreign types (IDEA-145186) 2015-09-16 18:53:29 +03:00
Anna Kozlova
210d5de79a unused declaration: ensure used static imports are not ignored (IDEA-143882) 2015-08-17 14:54:33 +02:00
Anna Kozlova
a1b44a53ac redundant throws: find throws clauses inside functional expressions (IDEA-135181) 2015-01-14 13:25:05 +01:00
Anna Kozlova
49f82c1948 unused return value inspection: method reference awareness (IDEA-134991) 2015-01-07 12:21:52 +01:00
Anna Kozlova
1c44e4347f lambda and local/anonymous classes should be excluded from visitor enumerating return statements 2014-12-08 18:59:53 +01:00
Alexey Kudravtsev
8c4047d021 EA-55582 - NPE: RefJavaUtilImpl.getAccessModifier 2014-12-08 14:05:20 +03:00
Anna Kozlova
cda6c424d0 unused declaration: add refs on functional interface from functional expressions (IDEA-132138) 2014-11-14 18:09:47 +01:00
Anna Kozlova
aa007bbd6d treat enum constructors as private (IDEA-118133) 2013-12-12 17:24:49 +04:00
Bas Leijdekkers
12577002ed IDEA-117863 (Package with disjoint dependency graph ignores interfaces) 2013-12-09 21:06:50 +01:00
anna
241e44bba8 EA-50288 - CCE: RefJavaUtilImpl.getTopLevelClass 2013-09-24 20:08:00 +02:00
Alexey Kudravtsev
8801671ffd moved to analysis 2013-07-09 15:53:04 +04:00