Tagir Valeev and intellij-monorepo-bot
e9cedba1cc
cleanup [java-psi]: PsiFormatUtil.getPackageDisplayName i18n, docs
...
GitOrigin-RevId: 89f3c0fb0a3dfcb652fd0b4d9044d3141b31d989
2025-11-07 08:32:51 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
8c3b69c65b
[java-inspections] IDEA-380526 Jspecify. False positive. Non-null type argument is expected for Array type
...
GitOrigin-RevId: 132eab2bc3bc9c4f6995a29796d8596b6e4a3c5c
2025-11-07 03:31:56 +00:00
Georgii Ustinov and intellij-monorepo-bot
d12ccda981
[Java] IDEA-375132 IDEA-381374 Do not compute nullability conflict for raw types
...
GitOrigin-RevId: 2796c18626bded813ae5db662b96bb6f55702dc6
2025-11-05 10:04:00 +00:00
Tagir Valeev and intellij-monorepo-bot
1f625254bb
[java-inspections] IDEA-379917 .filter(Objects::nonNull) should change type of Stream to nonNull
...
GitOrigin-RevId: 6f4d415288b813161c7627cb8839e274e189a1b8
2025-11-04 10:09:07 +00:00
Tagir Valeev and intellij-monorepo-bot
57e477df97
[java-psi] clean up: TypeNullability not experimental anymore
...
GitOrigin-RevId: aec77a18a91146dbd688968f1012ed8bc10b4c6c
2025-11-04 10:09:07 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
1ac2c9a806
[java-inspections] IDEA-381019 IJ-CR-180490 Invalid local variable type inference in JSpecify mode with generic functions
...
- check container
GitOrigin-RevId: 488ac99791eb9f35592aad23b355945d129f7b15
2025-10-31 12:28:49 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
36fdf1bae1
[java-inspections] IDEA-380832 @NotNull/Nullable inspection thinks Optional.ofNullable returns nullable type
...
- support lombok
GitOrigin-RevId: 4a8e26d9e876c83a64e774fc58c7f34945a62375
2025-10-30 11:11:35 +00:00
Georgii Ustinov and intellij-monorepo-bot
9f6615f6ed
[Java] IDEA-375132 IDEA-381374 Limit recursion depth when checking nullability conflict.
...
Previous implementation for nullability conflict detection didn't perform correct substitution for bounded type parameters. New approach does that, but it may face with endless recursion when facing with recursive type bounds. This commit limits for the type parameters
GitOrigin-RevId: 226e2d6f536cdcc943461632a42fc76a1fcc8e01
2025-10-30 10:21:52 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
581215e7e9
[java-inspections] IDEA-381019 Invalid local variable type inference in JSpecify mode with generic functions
...
GitOrigin-RevId: 4a99f16a371b9ad909500aadc14031ebcf547149
2025-10-28 19:20:57 +00:00
Georgii Ustinov and intellij-monorepo-bot
877c7ad663
[Java] IDEA-375132 refactoring: move type parameters substitution to the PsiUtil to make API more consistent
...
GitOrigin-RevId: 85463e3c3093aec168fb1871de3dd306dc270351
2025-10-27 10:40:41 +00:00
Georgii Ustinov and intellij-monorepo-bot
233f2c8bd5
[Java] IDEA-375132 Better formatting in JavaTypeNullabilityUtil
...
GitOrigin-RevId: e3dfe7c4a5ebcea273a72706068675b4938ce82e
2025-10-27 10:40:41 +00:00
Bas Leijdekkers and intellij-monorepo-bot
9acf04f411
Java: get useful "Create constructor" quick-fix on this() call with incorrect arguments (IDEA-381152)
...
GitOrigin-RevId: a226e4c6d00310a1fed86fe4e26dc872b64efaca
2025-10-25 11:06:32 +00:00
Tagir Valeev and intellij-monorepo-bot
b8d03cf021
[java-psi] PsiClassUtil#isThrowable: try traversing the hierarchy directly
...
We only need to traverse superclasses, not the interfaces, and may stop at any generic parameter. While there's no additional caching (like in super-class substitutor), it's still could be faster
GitOrigin-RevId: 8aec1d2f375d4c0f74e949b5b70d959a3330a432
2025-10-24 20:14:10 +00:00
Marcin Mikosik and intellij-monorepo-bot
abe801075b
[java] IDEA-380264 Fix javadoc of PsiAnnotationOwner.addAnnotation()
...
Merge-request: IJ-MR-179330
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com >
GitOrigin-RevId: e4c2b8ed94d585c82f85828954122e9994704fc8
2025-10-22 10:06:40 +00:00
Bas Leijdekkers and intellij-monorepo-bot
ab8455f916
Java: add space between field/method name and type (IDEA-138681)
...
GitOrigin-RevId: 913bf430a86cec149e99cdad5f4f52eeaa196555
2025-10-13 22:38:06 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
3a8344fcad
[plugin model] use 'public' visibility for content modules which classes are used from external plugins (IJPL-207059)
...
153 modules which contain classes used from external plugins from the Marketplace are marked as public. This is needed to ensure that it'll be possible to use that API after converting code from these external plugins to content modules.
GitOrigin-RevId: dc48e8970041fddd3bf50d280711e95ce9e9ad9b
2025-10-08 18:39:06 +00:00
Tagir Valeev and intellij-monorepo-bot
fd80796086
[java-analysis] IDEA-377761 follow-up cleanup
...
getConflictingAnnotations -> getConflictingContainerAnnotations;
Narrow down the parameter type
Fix the documentation
GitOrigin-RevId: 70a1f3b53653e63b49b84d5d82d08265097e6a6e
2025-10-08 17:00:39 +00:00
Bas Leijdekkers and intellij-monorepo-bot
cd8ada5c65
Java: add synthetic default constructor on resolve (IDEA-376799)
...
GitOrigin-RevId: 71d783efd5095b0995ac1788863c8a50de759f77
2025-10-07 18:33:10 +00:00
Marcin Mikosik and intellij-monorepo-bot
55ace90cfb
[java] IDEA-379571 Revert: Improve PsiPackageStatement.getAnnotationList() so it never returns null value
...
1) git reverts: Improve PsiPackageStatement.getAnnotationList() so it never returns null value
2) Solves merge conflicts in:
- community/java/java-impl/src/com/intellij/lang/OuterModelsModificationTracker.java
- community/java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/MoveAnnotationToPackageInfoFileFix.java
3) bumps STUB_VERSION in
- ClassFileStubBuilder.java
- JavaFileElementType.java
Merge-request: IJ-MR-177519
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com >
GitOrigin-RevId: 14ced51685daf90d3b2a8224bf35c8478ed2909f
2025-10-06 09:43:02 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
093d3214f4
[java] API cleanup: mark for removal and as internal deprecated API without external usages (IJPL-190638)
...
APIs, which were marked as deprecated in 251 or earlier and don't have external usages, are marked as internal. Also, if there are no internal usages, it's also marked for removal.
GitOrigin-RevId: ffd772fc41738cdf3bcf5a122756936383184866
2025-10-03 23:44:30 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
fa644d918a
[java] API cleanup: remove unused deprecated API scheduled for removal (IJPL-190638)
...
GitOrigin-RevId: fbb17fdf9252bf4d0721ffcd0163ee1492b73964
2025-10-03 16:06:15 +00:00
Tagir Valeev and intellij-monorepo-bot
0a3ce3a314
[java-psi] Simplify nullability sources
...
GitOrigin-RevId: 62767134fb984c7bd7f2ceeddc3fd2afcdd3011f
2025-10-02 17:14:10 +00:00
Tagir Valeev and intellij-monorepo-bot
f82677cd70
[java-psi] Better support of PsiCapturedWildcardType nullability
...
GitOrigin-RevId: 756345df368a8908f257ad525b2a32d074ea2620
2025-10-02 16:54:13 +00:00
Georgii Ustinov and intellij-monorepo-bot
5480b565a5
[Java. Inspections] IDEA-375132 Nullable return incompatibilities Basic implementation.
...
MR brings detection of nullable inconsistencies inside return expressions for generic types. Now it supports
- Support of arbitrary generic type (previously only collections was supported)
- Recursive detection of inconsistencies
- Detection of assigning not-null to nullable (via option)
GitOrigin-RevId: ed37ea02ca44db58698f36f2ca82c67171733e69
2025-10-02 14:36:35 +00:00
Tagir Valeev and intellij-monorepo-bot
960e3448ae
[java-psi] IDEA-377693 Support unbounded wildcards
...
Better implementation through the PsiCapturedWildcardType
GitOrigin-RevId: 35c30dcf936bd96e17c72795cc6fe09a370ccb9e
2025-10-01 15:50:23 +00:00
Tagir Valeev and intellij-monorepo-bot
ca97498b37
Revert "[java-psi] IDEA-377693 Support unbounded wildcards"
...
This reverts commit 5283895c887c59b3b4386c51ce2a06c67688e170.
GitOrigin-RevId: b56c4733616caed180dc170d6b73a30d0eb31321
2025-10-01 15:50:23 +00:00
Tagir Valeev and intellij-monorepo-bot
cce68d9b4d
[java-inspections] IDEA-377761 Incorrect usages of annotations. Opposite container annotations together
...
GitOrigin-RevId: 2a9ceb46787ef8cdff3677cd1c1c72782951c9cc
2025-09-30 17:43:53 +00:00
Tagir Valeev and intellij-monorepo-bot
f6b49100b4
[java-psi] IDEA-377693 Support unbounded wildcards
...
New exceptions are added with a discussion opened in JSpecify tracker:
https://github.com/jspecify/jspecify/issues/771
GitOrigin-RevId: ebcd3cfb99fc26e8b18c4c4ab25b10ed74ca8c11
2025-09-30 08:46:32 +00:00
Bartek Pacia and intellij-monorepo-bot
9f4e296856
[chore] re-enable formatter for Markdown Javadocs containing code blocks
...
The formatter had to be disabled because of IDEA-371809, but that bug is now fixed.
GitOrigin-RevId: ffe7eb9e3ed02f2b73f3c312d30380e92e42d97a
2025-09-29 12:41:26 +00:00
Georgii Ustinov and intellij-monorepo-bot
bf0b7011c2
[Groovy] IDEA-355525 instance main methods for groovy
...
GitOrigin-RevId: 3761ed4dafb616e9f6d99a68430c6d8581ecbdda
2025-09-29 10:44:34 +00:00
Ilia Kirianovskii and intellij-monorepo-bot
f43aa95086
[bazel] Update build files (IJI-3062)
...
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Tagir Valeev and intellij-monorepo-bot
7e4ed9a6c2
[java-psi] IDEA-379919 Guava. Possible NPE is not highlighted. Common type can be nullable?
...
GitOrigin-RevId: 1a7b4c1521d85e1424bf371fcaea97f062a6b50d
2025-09-26 15:31:28 +00:00
Bas Leijdekkers and intellij-monorepo-bot
ff4d693212
Java: introduce PsiArrayInitializerMemberValue.getInitializerCount() (IJ-CR-176760)
...
GitOrigin-RevId: d2cd802dbb3edff7218517221db96b39840e720a
2025-09-26 14:02:14 +00:00
Bas Leijdekkers and intellij-monorepo-bot
1143fea0b7
Java: introduce PsiArrayInitializerExpression.isEmpty() as well (IJ-CR-176760)
...
GitOrigin-RevId: 2f0757929d780ff01930cc8001001daf59ec4500
2025-09-26 14:02:14 +00:00
Bas Leijdekkers and intellij-monorepo-bot
5db7b62f2e
Java: improve javadoc
...
GitOrigin-RevId: 24c2aaa7182c9a19734b9c639ac700d58bc6df5c
2025-09-26 14:02:14 +00:00
Tagir Valeev and intellij-monorepo-bot
ac74ac484e
[java] IDEA-379795 Add hasAnnotations() to PsiAnnotationOwner, PsiModifierListOwner and TypeAnnotationProvider
...
GitOrigin-RevId: dbe2d9508f45fb5bbbff26c1ba81792f5120c690
2025-09-26 11:09:02 +00:00
Marcin Mikosik and intellij-monorepo-bot
2ea0d03d4d
[java] IDEA-379571 Improve PsiPackageStatement.getAnnotationList() so it never returns null value.
...
#IDEA-379571 Fixed
Merge-request: IJ-MR-176432
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com >
GitOrigin-RevId: 0d575fd55751ccac0b098b189ba3e90bbb081299
2025-09-26 08:03:20 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
a99d6a79da
[java-highlighting] IDEA-378781 Quick fixes for typos in keywords
...
- more cases
- move primitive types to PsiTypes.java
GitOrigin-RevId: 3a94f2e8fe84e9e2cb95d84bc7ebb13f77579916
2025-09-24 17:40:19 +00:00
Tagir Valeev and intellij-monorepo-bot
58d5de70e8
[java-psi] IDEA-377483 Wrong NPE message when iterating over Iterables.concat
...
Handle when `T extends @Nullable Type` is instantiated with unknown nullability
GitOrigin-RevId: 21d7cc928f4f5d9ac037fa42a632f936ed6c6516
2025-09-22 16:16:42 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
eebb6c4bb2
[java-highlighting] IDEA-378781 Quick fixes for typos in keywords
...
GitOrigin-RevId: 3984441825712d7f566461eaea10748d5b78f024
2025-09-22 14:16:34 +00:00
Bas Leijdekkers and intellij-monorepo-bot
a1c7ca404c
Java optimization: introduce PsiArrayInitializerExpression.getInitializerCount() and use it where possible (IDEA-375485)
...
GitOrigin-RevId: 1d54ca3773469a22db195a1667ce21cdc679a324
2025-09-19 17:27:37 +00:00
Bas Leijdekkers and intellij-monorepo-bot
99dc01d75a
Java: annotate PsiExpressionListStatement.getExpressionList() as @NotNull
...
GitOrigin-RevId: 509212ab37f403b04109dc7535cc4a6e1fdf3478
2025-09-19 17:27:37 +00:00
Tagir Valeev and intellij-monorepo-bot
fbd13ff64c
[java-psi] IDEA-377644 PsiImmediateClassType, PsiArrayType: reset nullability when annotations changed
...
Also: do not merge annotations during the substitution (unnecessary anymore after nullability is implemented and causes problems)
Some tests that rely on annotation merging during the substitution are removed/updated. The behavior was inconsistent anyway.
GitOrigin-RevId: c13e68616507bbb10cbe0384d122334879e166df
2025-09-18 15:04:14 +00:00
Tagir Valeev and intellij-monorepo-bot
f34bbe78ef
[java-psi] Contract annotations
...
GitOrigin-RevId: 2fbd0d37d08dbb2a2db3bae9ed1c5cf115663f1a
2025-09-18 15:04:14 +00:00
Louis Vignier and intellij-monorepo-bot
115c73bc1e
[javadoc] Highlight unresolved fragment references
...
IJ-MR-174748
#IDEA-376337
GitOrigin-RevId: 4352c370375c968392ea81cdcfab262ebd7fa5ab
2025-09-17 19:25:19 +00:00
Louis Vignier and intellij-monorepo-bot
3cf7c13a11
[javadoc] Add interfaces for fragment reference PSI elements
...
IJ-MR-174748
GitOrigin-RevId: 0db4a62e4216d01f52e49dfbe68f94654709c097
2025-09-17 19:25:19 +00:00
Bartek Pacia and intellij-monorepo-bot
2b6f045d49
[java-psi] main method utils: improve Javadoc a bit
...
GitOrigin-RevId: 94e7625f0541742bedb9d8a327e9870510895004
2025-09-17 16:10:41 +00:00
Bartek Pacia and intellij-monorepo-bot
4979c6d877
[java] IDEA-364759 JavaMainMethodProvider and PsiMethodUtil: create getMainClassQualifiedName()
...
This also deprecates PsiMethodUtil#getMainJVMClassName and JavaMainMethodProvider#getMainClassName because they are badly named and have no usages that make sense.
GitOrigin-RevId: fab10314a594d94b8f1b7eb76b451f77f284a6eb
2025-09-15 22:53:18 +00:00
Max Medvedev and intellij-monorepo-bot
934b1eedf2
add docs for PsiPackage#containsClassNamed
...
GitOrigin-RevId: 3b1147a5b04647e68e88e4f60a3bbd587dd9afae
2025-09-14 16:43:37 +00:00
Max Medvedev and intellij-monorepo-bot
3db4905b69
IDEA-367535 add docs for PsiPackage#findClassByShortName and its impl
...
GitOrigin-RevId: 2a0aee458ece289d1d306ad9ce9f81d6b7ef332b
2025-09-14 16:43:37 +00:00