Mikhail Pyltsin and intellij-monorepo-bot
7a31ef1f7d
[java-inspections] IDEA-374922 Highlight the second main method as unused (part of IDEA-372969 WIP)
...
GitOrigin-RevId: 11bc0dcd62d29f94270781ea5a79f4665575d0a9
2025-06-24 23:04:26 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
cccb22d78e
[java-inspections] IDEA-360429 Support guards in switch UAST
...
GitOrigin-RevId: 6679acb5d8380073f75ef7be8a8261c59e6b392b
2024-12-02 11:30:30 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
ccf2a6bae5
[java-inspections] IDEA-356982 PsiImplicitClass is created for certain invalid code and renders the whole file gray
...
- skip implicit classes in unused analysis
GitOrigin-RevId: 6eb880108723b3623b0cc449d76f9f87942fc8b7
2024-08-01 16:00:34 +00:00
Bas Leijdekkers and intellij-monorepo-bot
d1f0e0880a
Update "Unused declaration" messages for increased clarity
...
GitOrigin-RevId: 8bb4dd31d51f3cc4fb63c36579bd3078f6f622f7
2024-06-21 09:13:05 +00:00
Bas Leijdekkers and intellij-monorepo-bot
78865dc0a1
inspection: more accurate recognition of serialization related members
...
for "Unused declaration" inspection
GitOrigin-RevId: 331d66e0c964fabb35886658ff5a0a702cc0ac67
2024-06-07 14:19:07 +00:00
Bas Leijdekkers and intellij-monorepo-bot
d93f3a397d
inspections: report unused enum classes
...
for "Unused declaration" batch inspection
GitOrigin-RevId: 04c25515d2cef8867823ea3659a4baab2167c58a
2024-06-07 14:19:07 +00:00
Bas Leijdekkers and intellij-monorepo-bot
32ee8e3135
[java] consider enum constants used in batch inspection when valueOf() is called (IDEA-293797)
...
GitOrigin-RevId: 787c7356063bfbc11bbdc751dba55dd76f142e84
2024-05-29 14:19:54 +00:00
Bas Leijdekkers and intellij-monorepo-bot
153827d95f
Java: handle @Repeatable annotations better in “Unused declaration” inspection
...
GitOrigin-RevId: 677f2c52ac069497147398dce1b42709e78ff445
2024-05-09 12:47:21 +00:00
Bas Leijdekkers and intellij-monorepo-bot
734fd63f37
Java: don't consider constructors used when the class is used externally (IDEA-206602)
...
for global "Unused declaration" inspection
GitOrigin-RevId: e671cef5b81a2e148ec747e91e876959c0481d8d
2024-05-03 16:06:52 +00:00
Bas Leijdekkers and intellij-monorepo-bot
57b1788fa5
java: track java usages of annotation methods in Unused Declaration inspection (IDEA-256632)
...
psi hack because UAST lacks annotation property references
GitOrigin-RevId: 9d5f2fd8e9d55584be60ca529512dd0714fb551d
2024-04-25 13:49:49 +00:00
Bas Leijdekkers and intellij-monorepo-bot
5a7449d17c
java: fix global unused declaration inspection suppression (IDEA-256471)
...
GitOrigin-RevId: 5764b1db0c2d1acd5fb4574af04a3510ccb26448
2024-04-25 13:49:38 +00:00
Bas Leijdekkers and intellij-monorepo-bot
8f32c2551d
java: avoid duplicate deadcode reports
...
GitOrigin-RevId: 4c9833e1adc9182906c9f0797fbeb370100f52c4
2024-04-22 23:28:00 +00:00
Bas Leijdekkers and intellij-monorepo-bot
4c7002e81c
java: fix deadcode tests
...
GitOrigin-RevId: 8d170f38638a45e7a4304894e218ff0fbc02d8d9
2024-04-22 23:27:57 +00:00
Bas Leijdekkers and intellij-monorepo-bot
34d1d3a30f
java: report unused utility classes with unused methods as unused (IDEA-217378)
...
for "Unused declaration" inspection in batch mode
GitOrigin-RevId: f19b13dd262f0059adc4c08237e620ec8256e013
2024-04-22 23:27:18 +00:00
Bart van Helvert and intellij-monorepo-bot
f896419d92
[jvm] Split JUnit usage provider per framework
...
Will allow for disabling them individually. #IDEA-346510 Fixed
GitOrigin-RevId: 7b879111b92f38a7a55166d67d657520c6d9314d
2024-03-12 01:13:37 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
3f86cf9292
[java-highlighting] IDEA-339935 JEP 463
...
- rename unnamed classes to implicitly declared classes
GitOrigin-RevId: 2c6d7f16a1dc6d2371b8f8b5f5675246c9bc99f9
2023-12-11 15:49:28 +00:00
Roman Ivanov and intellij-monorepo-bot
eba6e0d551
[java, inspection] make global unused symbol inspection not report main methods for unnamed classes IDEA-333152
...
GitOrigin-RevId: 597ef591bebf0ee6968e08a05dd989aadc8bdd53
2023-10-04 22:33:23 +00:00
Aleksander Movsesov and intellij-monorepo-bot
a6eb2f5500
QD-6555: make derived references reachable for not initializing entry methods IJ-CR-112227
...
GitOrigin-RevId: cca88dd3552e5ca7a217474d82c17f89c28a7cba
2023-08-31 10:16:08 +00:00
Alexander Danilov and intellij-monorepo-bot
cef997ef8c
Fix testdata after making forward slash an ordinary char in InspectionsTestUtil
...
GitOrigin-RevId: e0d27694f2286bc21fdd45bbbc054c2d84021290
2023-03-13 21:46:58 +00:00
Bas Leijdekkers and intellij-monorepo-bot
a208e569d4
Java: recognize readObjectNoData() as a serialization method (IDEA-286800)
...
for "Unused declaration" inspection
GitOrigin-RevId: 5b5c262ea38dceefde5eb565b9c01225d4bfb8ba
2023-02-11 00:15:15 +00:00
Aleksander Movsesov and intellij-monorepo-bot
aee70454bc
Unused: avoid flaky behavior by forcing to make reachable content in case of incomplete reachable status
...
- Example: the class was made reachable as the base class (without making reachable out references), later that class may hit to visit itself.
- In this case, the content of the class wouldn't be reachable.
- It can be the source of flaky behavior because the results of the inspection run would depend on the visiting order.
(cherry picked from commit 62d457f7d85ebcf96d5ce990de40d7b0b0b88cfe)
IJ-CR-100952
GitOrigin-RevId: 4a921ebc61aed504030d00dd7ccbc55601c5ba68
2023-01-24 09:09:57 +00:00
Bas Leijdekkers and intellij-monorepo-bot
63c4ffc2bc
global inspections: don't create incorrect link between class and its field initializer targets
...
GitOrigin-RevId: 838fc87a71409dc722a9821525845e573242a883
2022-06-29 20:02:33 +00:00
Bas Leijdekkers and intellij-monorepo-bot
ae88c6cbb4
Fix unused declaration record false positives in batch inspection (IDEA-293902)
...
GitOrigin-RevId: 9f6e745abc93560315c708cf3e6806f86533ac1e
2022-05-29 13:35:27 +00:00
Bas Leijdekkers and intellij-monorepo-bot
e29649134e
Don't report local variables named 'ignored' as unused (IDEA-171371)
...
GitOrigin-RevId: 40ad31afd1cb58fcdd9c48ba9970508ec052b562
2022-05-10 23:33:07 +00:00
Bas Leijdekkers and intellij-monorepo-bot
6498cab354
Fix reporting some types of local variable in batch inspection (IDEA-293717)
...
GitOrigin-RevId: 7b893e8963b540a542498d4632b70cb28f671803
2022-05-10 23:33:06 +00:00
Bas Leijdekkers and intellij-monorepo-bot
42ca138d64
Report unused local variables inside lambda expressions with expression bodies
...
for the global "Unused declaration" inspection
GitOrigin-RevId: a6f9f2de0b53f254312a07c43190502731d995e2
2022-04-30 10:21:06 +00:00
Daniel Kraus and intellij-monorepo-bot
8f7355621f
[java] unused declaration: support easy mock (IDEA-277768)
...
GitOrigin-RevId: f71c9c6c9a517e93d3287347c218c40fc35d4c42
2022-04-14 09:15:28 +00:00
Bas Leijdekkers and intellij-monorepo-bot
77c2775063
Revert "java [unused declaration] - initial kotlin accessors support (disabled by default)"
...
This reverts commit e4055680
GitOrigin-RevId: 7f359f0b0c7c8e72b3bd011e40f9c0965821311a
2022-04-06 14:11:30 +00:00
Bas Leijdekkers and intellij-monorepo-bot
dad649393e
global inspection: avoid checking if owner class is interface
...
old way could cause a deadlock and now we can provide better redundant throws message on default methods
GitOrigin-RevId: f71d5f8938023b32d1ba4cef61eda77874c13ae2
2022-03-11 22:20:39 +00:00
Ilyas Selimov and intellij-monorepo-bot
df2321505f
java [unused declaration] - initial kotlin accessors support (disabled by default)
...
GitOrigin-RevId: e40556803447e42af014a67c36f66affea258f52
2022-02-23 14:16:15 +00:00
Olga.Klisho and intellij-monorepo-bot
5ba9f962be
[java] (IDEA-284762) cheap search for MethodSource reference default method implemented (Java and Kotlin) + test added
...
GitOrigin-RevId: 05ef801405962a0960a4b818f0dce26213f97d0d
2022-02-17 21:56:29 +00:00
Olga.Klisho and intellij-monorepo-bot
b2ce31d408
[java] cheap search for MethodSource reference default method implemented (search in the same class)
...
GitOrigin-RevId: 2b0a308c73758afeac272acb3518748784cd0923
2022-02-17 00:15:11 +00:00
Ilyas Selimov and intellij-monorepo-bot
4572835609
java [unused declaration] - switch on functional ref nodes
...
GitOrigin-RevId: b79fa6d91931bcc2c47f6f363f4a099736000d44
2022-02-09 12:40:24 +00:00
Ilyas Selimov and intellij-monorepo-bot
c7d80fb16a
[java unused declaration] - excluded functional ref node out of the graph
...
GitOrigin-RevId: 28ca95ff4709b8c7466abee73054d1bbb52ee28a
2022-01-19 08:40:35 +00:00
Anna Kozlova and intellij-monorepo-bot
3711123cf0
[java] [unused declaration]: process record's canonical constructors
...
EA-296213 (plugin) - CCE: RefJavaManagerImpl.getParameterReference
GitOrigin-RevId: 3b01695e5ff11d45fdcfdf6c1ffeb22a67b194bf
2021-10-18 17:01:14 +00:00
Bas Leijdekkers and intellij-monorepo-bot
10eadfae6c
[global inspections] main and test method are only entry points when they are public
...
GitOrigin-RevId: 6d4c061576bba1a76c7fecb7fa1a845f396495db
2021-10-11 22:27:30 +00:00
Ilyas Selimov and intellij-monorepo-bot
6b74c12eab
[java] - unused declaration rework for functional expressions
...
GitOrigin-RevId: e2f2188edf79fddd902c038bdfdea072eed01bfe
2021-10-11 05:51:42 +00:00
Olga.Klisho and intellij-monorepo-bot
f33d39dc14
(IDEA-277524) Unused declaration deep search for MethodSource added
...
GitOrigin-RevId: 70ac57c46c0af90cfe203ecc7b364bdb894bf462
2021-10-04 21:52:23 +00:00
Ilyas Selimov and intellij-monorepo-bot
1b4c297f74
IDEA-158821 - added an edge between refFrom and lambda/method ref parameters where it's needed
...
GitOrigin-RevId: 946c0073473e6a5f68da422518cdc137f9224601
2021-08-19 10:28:30 +00:00
Ilyas Selimov and intellij-monorepo-bot
2da95e3f5d
IDEA-196862 - added hierarchical meta annotations processing
...
GitOrigin-RevId: d7b4c2aa0c251b6fb2913927994ec4c5a61e6538
2021-03-11 13:30:24 +00:00
Ilyas Selimov and intellij-monorepo-bot
173a2a03e1
IDEA-196862 - added meta annotations processing
...
GitOrigin-RevId: c9cc025971ab76606d5d670efe9a472b3c9bd067
2021-03-10 19:48:39 +00:00
Ilyas Selimov and intellij-monorepo-bot
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 and intellij-monorepo-bot
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
Ilyas Selimov and intellij-monorepo-bot
88b3709251
IDEA-224056 - prevent visiting local classes inside methods during launching unused declaration inspection
...
GitOrigin-RevId: 5c6edec3a58e4237e410dc54f9762f9d7149f292
2020-11-26 08:20:59 +00:00
Ilyas Selimov and intellij-monorepo-bot
12b7de5e77
IDEA-224056 - handle unused local declarations in lambda expressions
...
GitOrigin-RevId: 5861b958e9ca05deec08ec9ae8f271b60a6b8a16
2020-11-25 07:07:07 +00:00
Bas Leijdekkers and intellij-monorepo-bot
dbb8a2bac3
unused declaration: a class with non-static fields is not a utility class
...
GitOrigin-RevId: 4c3f04dce18ee56fb0a0fe3beeee405fe91f750e
2019-10-14 11:04:47 +00:00
Rustam Vishnyakov and intellij-monorepo-bot
123242c4b2
EditorConfig documentation test
...
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan and intellij-monorepo-bot
c1813cfb52
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova and intellij-monorepo-bot
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 and intellij-monorepo-bot
39d2d77155
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00