Tagir Valeev
94f84681ac
[java-inspections] Redundant cast: do not report if there's a change in compilation errors within the parents
...
Fixes IDEA-372049 Erroneous RedundantCast inspection on varargs with nested calls
Fixes IDEA-361212 Redundant cast false positive: method call type changes
GitOrigin-RevId: d999fccd9a491445502e48bbab3f0b828ca98f6a
2025-06-16 18:45:28 +00:00
Tagir Valeev
73943d0839
[java-dfa] Simplify Mutability computation using external annotations
...
GitOrigin-RevId: 6570f36a8fa94ca14f4341875b5b980c7124641a
2025-06-16 15:03:39 +00:00
Bas Leijdekkers
e6e401fbe1
Java: don't produce NUL characters in Convert to Markdown documentation output (IDEA-374488)
...
GitOrigin-RevId: b96d7cc559b0ffbc5130131961b8a530b9baba9c
2025-06-14 22:43:28 +00:00
Vladimir Krivosheev
b935234c91
IJ-MR-162467 don't export intellij.platform.projectModel
...
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +00:00
Vladimir Krivosheev
ef0323d07c
IJ-MR-162467 don't export intellij.platform.core
...
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Tagir Valeev
b56c24001e
[java-inspections] Report incompatible instantiation
...
Fixes 'nice to have' parts of IDEA-372223 Nullability inference for generic parameters
GitOrigin-RevId: fe9490c352ee417b8a4146076632ef42790a4d25
2025-06-12 12:11:23 +00:00
Tagir Valeev
4466a6556b
[java-analysis] Use type nullability in DFA
...
Fixes IDEA-372347 Java type inference should respect nullability
Fixes IDEA-368244 Unexpected warnings when using @Nullable generic type bounds in @NullMarked context
Fixes IDEA-372223 Nullability inference for generic parameters
Fixes IDEA-367232 'Argument might be null' warning on JSpecify nullable enum
GitOrigin-RevId: 12745f82e22fadb35e23ad73f330501146c86b86
2025-06-12 12:11:23 +00:00
Bart van Helvert
08b951455a
[jvm] Fix empty method inspection on default method
...
#IDEA-374417 Fixed
GitOrigin-RevId: 49be25fd495b89b522fa839e1cda17f09b64468e
2025-06-12 11:54:49 +00:00
Tagir Valeev
31caeebf56
[java-dfa] AllNotNullInliner: cosmetic fixes after review
...
GitOrigin-RevId: 23157de98e76a5e6fc11ad50be27368c601c9ce3
2025-06-11 12:05:41 +00:00
Tagir Valeev
ee1c23f88b
[java-dfa] Native support of ObjectUtils.{all,any}[not]Null methods
...
Fixes IDEA-373254 Recognized ObjectUtils.allNotNull method in data flow inspection
(at least, my understanding of it)
GitOrigin-RevId: 5bf63072a84b22a3a5de58d53c8521f1296a0fd1
2025-06-10 11:20:40 +00:00
Vladimir Krivosheev
539d5197ad
don't export intellij.platform.util.diff
...
GitOrigin-RevId: 2b25166fd986c0b897636a290a97f1b2927352ce
2025-06-09 21:02:56 +00:00
Bart van Helvert
d942ea174c
[jvm] Fix RefMethodImpl hasBody check for Kotlin accessors
...
#KTIJ-34354 Fixed
GitOrigin-RevId: 926aab275ad24453f34287cccfe6d9621bf57aee
2025-06-09 20:00:17 +00:00
Bas Leijdekkers
9ae32a8adb
Java: better mutability check for record components (IDEA-371018)
...
GitOrigin-RevId: e4f351bcc297d41857406d177df00ff2696a7bfd
2025-06-09 14:24:43 +00:00
Vladimir Krivosheev
982fba0b33
IJ-MR-162467 don't export intellij.platform.concurrency
...
GitOrigin-RevId: 5cd5a6506d69bfd384f21fc5a79d1f12a172a074
2025-06-08 20:43:51 +00:00
Bas Leijdekkers
0a60753921
Java: don't report casts of constants (IDEA-373869)
...
in "Constant expression can be evaluated" inspection
GitOrigin-RevId: aa1bac4aef1e306c5c9671b9cdf3aca638feb95b
2025-06-05 20:37:31 +00:00
Vladimir Krivosheev
2d5aaf391b
IJ-MR-162467 don't export intellij.xml.psi
...
GitOrigin-RevId: d4ca928b7dc468451c0047bd35f1f60c1199207a
2025-06-05 14:33:17 +00:00
Nikolay Chashnikov
c2d557e204
[java] API cleanup: mark for removal deprecated unused API (IJPL-178044)
...
GitOrigin-RevId: 2aa137195af375b84adec0b7c350d6ae256eef53
2025-06-04 12:36:57 +00:00
Vladimir Krivosheev
65fe061584
IJ-MR-162467 don't export intellij.platform.analysis
...
GitOrigin-RevId: fcbcb68010b58cb507fee2c47473758b999e471b
2025-06-04 11:16:33 +00:00
Mikhail Pyltsin
f79bb18278
[java-import] IJ-CR-163032 IDEA-369199 Preserve module imports even if they are not used
...
- always highlight unused imports in the hierarchy
GitOrigin-RevId: 26b7fb22931e4b37e45f7c5ee5940d1cfed2a03d
2025-06-04 07:38:18 +00:00
Bas Leijdekkers
c24735c611
Java: fix "Add braces to 'else' statement" not showing before 'for' (IDEA-372262)
...
GitOrigin-RevId: c305cd5df439ea2c1ea6d796dc1b57a16a87ba36
2025-06-03 20:14:33 +00:00
Tagir Valeev
96974e33ba
[java-inspections] checkNullableNotNullInstantiationConflict: use createTypeFromText to preserve nullity
...
Part of IDEA-372347 Java type inference should respect nullability
GitOrigin-RevId: 433069762b1c7a5dff4b64f9708154a812137cd4
2025-05-30 18:51:30 +00:00
Tagir Valeev
211321c88a
[java-dfa] Do not check nullability match for primitive methodref return types
...
DfaPsiUtil returns UNKNOWN nullability for primitive types, but in future we may return NOT_NULL, which is technically more correct. On the other hand, here implicit unboxing is possible, and it's already handled elsewhere, so we won't need an extra warning.
Part of IDEA-372347 Java type inference should respect nullability
GitOrigin-RevId: b864bfc4995a9b5e0e6a13cba807bd8b5b7d04ca
2025-05-30 18:51:30 +00:00
Vladimir Krivosheev
ab69d8455c
IJ-MR-162467 don't export intellij.platform.indexing
...
GitOrigin-RevId: 5065d7f10610d024e4a89a379be3de68caf55dc3
2025-05-29 17:55:17 +00:00
Nikolay Chashnikov
527e6577b9
[java] API cleanup: remove unused deprecated API scheduled for removal (IJPL-178044)
...
GitOrigin-RevId: d40c483b7b18fd193da4345ae9c8c472f355d47e
2025-05-28 23:37:49 +00:00
Tagir Valeev
6dd081fd22
[java-highlighting] IDEA-373426 When highlighting an error in method arguments, navigate (via F2) inside the parentheses
...
GitOrigin-RevId: 760549be13f4c78c66c9074e3de8be34cf0f3a51
2025-05-26 15:22:29 +00:00
Tagir Valeev
09df3539c0
[java-inspections] RedundantCastUtil: check qualifier chain
...
Fixes IDEA-370995 Generic cast is marked as redundant when necessary.
GitOrigin-RevId: 5fe5107150e1cde4373c0b9fd95aaeb5e9e087ba
2025-05-26 14:05:04 +00:00
Tagir Valeev
ddc812cd28
[java-inspections] RedundantCastInspection: recheck that the cast is redundant in fix
...
This might be important if 'fix all' is applied and two casts are redundant individually, but not together
GitOrigin-RevId: 90e26e9e1a04a88ef50bb87e2f981c4ee1c154f1
2025-05-26 14:05:04 +00:00
Tagir Valeev
002f45f937
[java-dfa] Switching on expression of unknown type should not mark branches as unreachable
...
Fixes IDEA-371191 Unhelpful "unreachable switch label" warning
GitOrigin-RevId: d3e92efc518590ed7c5b7219b9ba0378c292507d
2025-05-23 16:06:16 +00:00
Nikolay Chashnikov
d039e59e88
[java] report access to package-private members declared in production code from tests (IDEA-372858)
...
GitOrigin-RevId: 6f046186e0f0a587e1aaab31dd55b9f76a28db96
2025-05-19 10:03:24 +00:00
Alexey Kudravtsev
89f928d3e7
fix after "fix visibility" global refactoring (highlighting pass factories)
...
GitOrigin-RevId: 9902d48768bab6994b68c0871cf1051a5968ff51
2025-05-16 15:08:15 +00:00
Tagir Valeev
38fe7ad147
[java-intentions] Disable AddAnnotationTargetFix if target file is non-Java (IDEA-371124)
...
GitOrigin-RevId: e0a2b37965d3b24c8b7310f5cc61bec8999f59f5
2025-05-16 12:27:32 +00:00
Alexey Kudravtsev
6d1f55f160
cleanup: rename file to psiFile to distinguish from VirtualFile
...
GitOrigin-RevId: e718eac8ba2d2177787ae941d8525b3c154d10fc
2025-05-16 02:54:06 +00:00
Vladimir Krivosheev
ba225ba21c
update bazel files
...
GitOrigin-RevId: 5dabe601be67c9e7614ba87022a6c7bebadf69df
2025-05-15 16:17:46 +00:00
Tagir Valeev
745eef9189
[java-psi] Support single-source file roots in various places (IDEA-368975)
...
GitOrigin-RevId: 2045de1f99ece67fe63a09f131664511167baf4a
2025-05-15 15:54:39 +00:00
Marat Dinmukhametov
fb807be02b
[http-client] IJPL-179625 Using full computed url for HttpClient request generation
...
If there is no full url information, we will use resolved version
GitOrigin-RevId: c20a364561f5ecbb56d8e519558fbd9205d94edc
2025-05-15 09:59:56 +00:00
Marat Dinmukhametov
5621f8be9e
Revert "[http-client, microservices] IJPL-179625 ignoreSupPathContext for correct generation requests with query parameters"
...
This reverts commit c637114044d68ed1ad78ef796ac6a77e8acf4a79.
GitOrigin-RevId: c2e9e3991bb16072725f78fe101c055e3e3d5ed2
2025-05-15 09:59:56 +00:00
Marat Dinmukhametov
ce8c8bf9e3
[http-client, microservices] IJPL-179625 ignoreSupPathContext for correct generation requests with query parameters
...
ignoreSupPathContext is just a workaround for generating requests with query parameters. It would be better if we could use the full URL representation for HttpRequest generation, because right now there's no way to include URL information (e.g., query parameters) on the left side of the context
GitOrigin-RevId: 88b22b60ff322c6c10d34cd089c6731359f5de98
2025-05-15 09:59:55 +00:00
Marat Dinmukhametov
f3df8ba421
[http-client, microservices-jvm] IJPL-179625 The URL part of MicroservicesJvm was moved to Java
...
Because HttpClient will be in Android Studio. It needs access to this API to have implementations of HTTP clients (Ktor, Retrofit, OkHttp) in Android Studio.
GitOrigin-RevId: 30771b08ec0a1642ca010cde8513703abc0f7b0f
2025-05-15 09:59:55 +00:00
Mikhail Pyltsin
cebd8c18cd
[java-import] IDEA-369199 Preserve module imports even if they are not used
...
- new options
- don't highlight such imports as unused
- delete imports of nested modules
- preserve high-level modules during 'optimize import'
GitOrigin-RevId: 3728f41a934f320767caac0a643a5869ccc84bcc
2025-05-14 20:29:11 +00:00
Vladimir Krivosheev
fbc9805e89
IJ-MR-162467 don't export intellij.platform.jps.model
...
GitOrigin-RevId: ebaebc90d514e5f3046fe2b973647da4bf156625
2025-05-14 18:10:23 +00:00
Tagir Valeev
b628e41173
[java-dfa] Support type hierarchy for parameters
...
Fixes IDEA-371133 Missing warning when passing null to parameter of non-nullable generic type
GitOrigin-RevId: dff653e1e85d7633b744dc2ffbcdb140ac24fe4e
2025-05-14 15:30:12 +00:00
Vladimir Krivosheev
6fa704d95d
IJI-2602 fix super-class visibility
...
GitOrigin-RevId: 6ba76539d1e6b5e50227ce3d8cd1452f5f284e48
2025-05-14 10:39:04 +00:00
Vladimir Krivosheev
3a3013b232
IJPL-149126 fix method visibility (part 3)
...
GitOrigin-RevId: 3b9ce49a6a02034fd20698d26aea8f28b92f582b
2025-05-13 18:15:51 +00:00
Bas Leijdekkers
26d26d0caa
Java: update inspection name and description (IDEA-271214)
...
GitOrigin-RevId: 6c3b065c026b0de4e3b9cdf881ac2427c912390f
2025-05-13 17:43:07 +00:00
Mikhail Pyltsin
7f2652b15b
[java] IJ-CR-162106 IDEA-360079 live templates for instance main methods in implicitly declared classes
...
- add tests
- add live variables
- fix scopes
GitOrigin-RevId: 413a9bef8fc62321dfc39ea5174d85f2003fb35a
2025-05-13 17:29:36 +00:00
Mikhail Pyltsin
294d6bb6c9
[java-imports] IDEA-370756 Optimize Imports adds unused import
...
GitOrigin-RevId: e14b210b781a3134d03c988d27f7ddb7a5e65f63
2025-05-12 12:20:09 +00:00
Tagir Valeev
439a3ccff8
[java-highlighting] Restore order of 'implement methods' and 'make abstract'
...
Fixes IDEA-371881 interface implement became abstract by default
GitOrigin-RevId: 5132319aa2dbccdcaddd718b4b67befc3a82852d
2025-05-09 18:02:40 +00:00
Vladimir Krivosheev
7cf9ef2b29
update bazel files
...
GitOrigin-RevId: e78f86bd17affd7892fd1af8e157f033906b1865
2025-05-09 15:36:06 +00:00
Vladimir Krivosheev
644a6b2e81
IJ-MR-162467 don't export intellij.platform.editor.ui
...
GitOrigin-RevId: 8894abe16fb347de7649bfb2d7888b6e6fe0232c
2025-05-09 14:20:40 +00:00
Mikhail Pyltsin
037958feaf
[java-inspections] IDEA-360079 unused for main method modifiers
...
GitOrigin-RevId: 698a021a1c86d8365a113d2d1b47c085beec9489
2025-05-09 11:55:52 +00:00