Commit Graph

737 Commits

Author SHA1 Message Date
Tagir Valeev
69ec209f9b [java-highlighting] SwitchBlockHighlightingModel: isolate duplicates search code
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: c207684c048db5a739c684b74792ca8bf2a7e674
2025-02-19 17:57:38 +00:00
Tagir Valeev
a0f777069b [java-highlighting] move module-related warnings to JavaModuleDefinitionInspection
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 66179a41da5e02b759f07f9d6638b87711181348
2025-02-17 12:04:21 +00:00
Vladimir Krivosheev
7c51212ef2 fix LinkedCustomHashMap visibility
GitOrigin-RevId: 9fb570c31122083c4afbc06422849ae3043e8df2
2025-02-14 21:08:26 +00:00
Vladimir Krivosheev
68873aa603 fix LinearBekGraphBuilder, DEFAULT_TESTS_CATEGORY visibility
GitOrigin-RevId: 9d4548ad0a0474dbf0e1ff8b918d9121acab4ba5
2025-02-14 21:08:26 +00:00
Vladimir Krivosheev
06427f7d91 fix FUNCTIONAL_EXPRESSION visibility
GitOrigin-RevId: 1e7706aecfda9f6086c0e3fe91ab528fc8cddffd
2025-02-14 21:08:26 +00:00
Tagir Valeev
2350d69472 [java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
2025-02-14 12:45:24 +00:00
Aleksey Dobrynin
d41422ac8f [java, import-module] Replace 'import module' with class imports in module-info.java (IDEA-367505)
GitOrigin-RevId: 8a0ba58ca14698f553fdd6baf132d00d7ba0e504
2025-02-14 01:09:59 +00:00
Tagir Valeev
66c585bdb0 [java-inspections] JavaAnalysisBundle.properties: unused properties removed
GitOrigin-RevId: 8d41fa6655d530381721170018edf25c9abd8e51
2025-02-11 15:54:30 +00:00
Tagir Valeev
c4549cf1a5 [java-inspections] Save varargs warning text fixed
GitOrigin-RevId: d934d8ef4c47848ad2edfda608a4cd29eadee35a
2025-02-11 15:54:30 +00:00
Leonid Shalupov
40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00
Vladimir Krivosheev
3b18ffb70a add processData, use computeIfAbsent
GitOrigin-RevId: f0952b9df9bf57d424b57c74444cbcc1e7b3668a
2025-01-31 12:58:08 +00:00
Tagir Valeev
9dbf2ace73 [java-inspections] UnreachableCatchInspection extracted from highlighter
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b2e389aa89d75c63969a3884a495b3771d2712b2
2025-01-27 18:53:10 +00:00
Tagir Valeev
07960b2159 [java-intentions] AddTypeArgumentsConditionalFix: report the branch
After changes in highlighting, it's not possible anymore to attach a fix to the range. In general, it's good, because the user may have no idea that the fix is available at a specific offset. So instead, we allow invoking the fix at the whole error range but indicate which branch will be updated.
Also: parentheses supported; fix all option added, minor touch-ups

GitOrigin-RevId: d756252cd1d3c061f52bdb70d62bed3bedcb69e3
2025-01-15 19:19:41 +00:00
Tagir Valeev
41b2c21759 [java-highlighting] Implicit constructor call problems migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: eb4befa6b9d6d9b5b8c968fed54abb11c419f578
2025-01-15 19:19:41 +00:00
Mikhail Pyltsin
839cb86f9d [java-inspections] IDEA-340624 Optimize imports quick fixes do nothing
- use not-on-the-fly

GitOrigin-RevId: 31272bd0a4670ddd80aae4fdbe756010cf14ac47
2025-01-14 13:39:22 +00:00
Tagir Valeev
aefc2b83e7 [java-highlighting] Literal and comment problems; findSingleError
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 6e0c38d1caea9272cee420c35589dfb859950793
2025-01-14 12:42:34 +00:00
Tagir Valeev
c7edfdbe4a [java-highlighting] SafeVarargs checks -> AnnotationChecker
Also, warnings are moved out to inspections
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 2292723fde787454467307c213ea38e730aa0ff5
2025-01-08 16:42:47 +00:00
Tagir Valeev
e711100561 [java-highlighting] Initial draft of highlighting server; some annotation-related errors are reported by it
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: e815adec0be9017c8237bdd8fe7c67632f2438da
2025-01-07 11:54:43 +00:00
Tagir Valeev
d49d42c5d5 [java] annotation.target.* messages moved to JavaPsiBundle.properties
GitOrigin-RevId: ae0914063db552bdbd24b10348ad6e92e9e83636
2025-01-03 19:17:43 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
7b9ec58009 do not export intellij.database.connectivity.tests
GitOrigin-RevId: a1ef44dfa34cde110c9e6cad19d11b5e3019ab72
2024-12-28 21:45:55 +00:00
Vladimir Krivosheev
051ed2529b cleanup
GitOrigin-RevId: 6fa4f979e0a6641885e2225eb985b13713373ac5
2024-12-26 14:56:01 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Vladimir Krivosheev
2f2530b0c7 SimpleExpectedType is used by java - cannot be private
GitOrigin-RevId: 333432fc4d13a2d4ad18cbaa70413ae838c56925
2024-12-13 15:14:43 +00:00
Alexey Kudravtsev
31185c6576 Propagate @Unmodifiable to enable data-flow inspection to analyze more code
GitOrigin-RevId: 288358515ebebd840b45244cd3d5b251385ff1b8
2024-12-03 15:50:19 +00:00
Tagir Valeev
5a10f2e424 [java] IDEA-364190 Create language level 24
GitOrigin-RevId: 500c9a05f48e6c1d43c2019a1a9620df42a2adf4
2024-12-03 14:25:33 +00:00
Tagir Valeev
5dca817b05 Add missing @Override annotations
GitOrigin-RevId: 56b084f82d4f4ec5153645b4d745bc881b803a26
2024-11-29 12:51:16 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Alexey Kudravtsev
9cef099839 propagate @Unmodifiable to more methods calling ContainerUtil, to enable data-flow inspection to highlight more warnings
GitOrigin-RevId: 01d3c976ffd35c3290433d0cd6c0f2d59df894f1
2024-11-27 12:57:34 +00:00
Alexey Kudravtsev
f2982c675f annotate @Unmodifiable collections to which unmodifiable data from ContainerUtil is assigned, to make it easier for data-flow inspection to spot mutability-related errors
GitOrigin-RevId: 4372383f31177cbc00d981a81adddc88325e98b3
2024-11-26 16:58:17 +00:00
Andrzej Głuszak
cbca664f6c [bazel] Second attempt at generating tests
GitOrigin-RevId: 7763c9994b7c311310b83b98a542775feb00ed68
2024-11-09 11:06:41 +00:00
Nikolay Chashnikov
8c90290e43 [java] add API to process field and method references to JvmBytecodeAnalysis (IJPL-165190)
GitOrigin-RevId: ace30e9296dbfef255e075ca82041b0aab340032
2024-10-25 15:24:44 +00:00
Nikolay Chashnikov
ebebd1d05e [java] refactoring: throw IOException from ClassFileAnalyzer.processFile instead of logging it inside (IJPL-165190)
Calling code should deal with such exceptions.

GitOrigin-RevId: 1f6e9de4c7f9c320052877b8604e2ec5b8b289a6
2024-10-25 15:24:44 +00:00
Nikolay Chashnikov
107dc70d23 [java] extract API from AbstractDependencyVisitor (IJPL-165190)
JvmBytecodeAnalysis service is introduced here as an entry point to different functions which allow analyzing declarations and references in the bytecode. It makes it easier to use the API, and also allows adding functionality to process references to fields and methods (needed for IJPL-165190).

GitOrigin-RevId: 28d2659007ee38282676d583af7941988ad65d9a
2024-10-25 15:24:44 +00:00
Tagir Valeev
676c19bc1f [java-inspections] Report TYPE_USE nullability annotation on classes
GitOrigin-RevId: f5c6113ccd1738d72b0f58fe13a8352a043431c9
2024-10-11 08:10:27 +00:00
Georgii Ustinov
c02d32ef74 [Java] Make JavaSpellcheckingStrategy dumb aware
IDEA-357681

GitOrigin-RevId: 1fead4d1fdb98c99d8b68d48813f483deaa6b35c
2024-10-05 10:25:23 +00:00
Evgenii Zakharchenko
0d2f04cbb0 [spring] IDEA-352682 Enhanced Spring data JPA repository completion
GitOrigin-RevId: d96f4d567646dca61b2fdab3dbea38dfd626dd37
2024-09-30 19:52:27 +00:00
Yuriy Artamonov
47f1c44a90 [java] IJPL-158521 Actions: fix ellipsis in messages for Java actions
GitOrigin-RevId: bfce0d6efa8747660c4b9af3d8defbfa47e4509a
2024-09-15 14:50:09 +00:00
Bart van Helvert
33ffadffde [java] Remove empty lines
GitOrigin-RevId: ff0462e1869e0484207399cd7ae17166737a0b46
2024-09-09 18:57:34 +00:00
Bart van Helvert
3af9455adb [java] Don't generate API list entry when API is not part of public API
These entries are useless because you can't call those APIs anyway.

GitOrigin-RevId: c43065e082851e1b1574bb9ed47050e8f0dfc61a
2024-09-09 15:04:13 +00:00
Evgenii Zakharchenko
26f4517a0e [spring] IDEA-357318 Spring: inject on completion in constructor produces broken code
GitOrigin-RevId: 79fa4eeac4be5e1520963e1813be22c94db52b69
2024-09-09 14:54:07 +00:00
Bart van Helvert
362bcc4561 [java] Regenerate API lists with Java 23
The newly regenerated list is merged with the previous API list. The newly generated list uses an updated version of the generator that correctly writes canonical names for Java versions higher than 19. #IDEA-357683 Fixed

GitOrigin-RevId: 81c62964385d1daaeaf3e84306ebfbc5c77ad90a
2024-09-04 23:47:59 +00:00
Tagir Valeev
59325634ab [java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
2024-08-28 17:54:26 +00:00
Mikhail Pyltsin
cb37003541 [java-inspections] IDEA-357323 Propose case null during adding all cases
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Aleksey Dobrynin
44e14f0283 [java, highlighting, import-module] Check access module names for Module Import Declarations DEA-356710
GitOrigin-RevId: 819c182488bd0b4aeffb8518373da35aabf311ca
2024-07-31 17:00:00 +00:00
Mikhail Pyltsin
0b30038602 [java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00
Nikolay Chashnikov
273f3a0aa9 [analysis] API cleanup: provide default implementation of deprecated RefManagerExtension::getLanguage and eliminate its usages (IDEA-355906)
GitOrigin-RevId: 05b2559ed353deb0baa5754fcef6074791e9cb5e
2024-07-17 10:04:59 +00:00
Tagir Valeev
d52f6c789f [java-dfa] IDEA-355908 Add new mutation contract option: io
GitOrigin-RevId: 206fae268d8444d475a4feac6ebc5ef96ffc57bb
2024-07-04 21:05:23 +00:00
Tagir Valeev
b023c1d252 [java-highlighting] error.unnamed.variable.brackets: proof-reading
GitOrigin-RevId: b30031e9d76de357434f48e71b099cf27d4b90e4
2024-07-03 17:42:16 +00:00
Bas Leijdekkers
14315c7ca4 [java] introduce language level for Java 23
GitOrigin-RevId: d64d154c243f5c1810bf08790a1df44a6ac948cb
2024-07-03 10:13:47 +00:00