Tagir Valeev and intellij-monorepo-bot
d694fde33a
IDEA-386017 [java-inspections] Improvements after review
...
1. Better documentation
2. Flip arguments in case of strict inequality
3. Better tests
(cherry picked from commit 56c1dab39962fb457ca38a6ac44125b38ef11ea3)
IJ-CR-192581
GitOrigin-RevId: d9c31f14f62a2d6ea28aa00cf67985d9b2ccfb44
2026-02-26 13:40:41 +00:00
Tagir Valeev and intellij-monorepo-bot
725067012d
IDEA-386017 An inspection to suggest comparator.max/min methods since Java 26
...
(cherry picked from commit 242aca7f7293178ba915e5b004776e10ee561afa)
IJ-CR-192581
GitOrigin-RevId: 3d886eac176097d2b93670a77bb387cd85cd09a2
2026-02-26 13:40:41 +00:00
Anna Kozlova and intellij-monorepo-bot
bd98ab211c
[kotlin] fix uast annotations
...
- firKotlinInternalUastUtils: ensure that boxed primitives and String become annotations; otherwise @Nls is missed from the analysis
- AnnotationContext: ensure symbol-based accessor methods are processed; otherwise annotations on properties are ignored
- move tests to k2
^KTIJ-32161 fixed
(cherry picked from commit 0cfbb46aae09df62b6fe5a432ca965e55ed6b5ad)
IJ-CR-192381
GitOrigin-RevId: c4295bc61abd6507622379faed2982170665f151
2026-02-25 10:05:05 +00:00
Tagir Valeev and intellij-monorepo-bot
27df63b6fb
IDEA-385621 [java-inspections] Super class shouldn't be highlighted if it has correct annotations for parameter types
...
Also fixes IDEA-385977 NullableStuffInspection -> reportHierarchyInconsistency
GitOrigin-RevId: 5a7584a44f300440db714c8d566a1f778b5e95e1
2026-02-16 18:35:21 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
0b03628e08
IJPL-233553 IJ-MR-186058 reduce suppressions (part 2)
...
GitOrigin-RevId: c989695d6cc980b17a185616d3a7cd6efd2f1766
2026-02-15 17:15:28 +00:00
Bas Leijdekkers and intellij-monorepo-bot
3613baab5c
IDEA-385919 [java]: better parameter type
...
GitOrigin-RevId: 210480c9dd38a39042a5d48abf03f1aacf3bdf40
2026-02-13 23:51:46 +00:00
Bas Leijdekkers and intellij-monorepo-bot
3fe2a500e1
IDEA-385919 [java]: some cleanup
...
GitOrigin-RevId: 3bcd881c3b35c280ef4699d636584bfc48d17961
2026-02-13 23:51:46 +00:00
Bas Leijdekkers and intellij-monorepo-bot
7ce9a6ced0
IDEA-385919 [java]: offer "Make '<functional interface>' public" fix on lambda
...
GitOrigin-RevId: 75a800bb70ffd0a0c90cde65a170b3dba3778fed
2026-02-13 23:51:46 +00:00
7410 and intellij-monorepo-bot
da7e97c4f9
IDEA-385655 [java] Redundant type parameters in constructor calls are not highlighted
...
GitOrigin-RevId: 4a6ea972cda2c44d6000daa0e71106d23f3c823d
2026-02-13 16:47:12 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
50099da8cc
IJPL-212619 java: mark deprecated unused API for removal
...
API, which was marked as deprecated in 252 or earlier and has no external and internal usages, is marked for removal.
GitOrigin-RevId: 7c59d530d22550eba4b9ae0d078413f7f4d67d98
2026-02-13 14:59:20 +00:00
Tagir Valeev and intellij-monorepo-bot
f697eeaf1d
IDEA-385863 [java-inspections] False-positive «redundant nullability annotation» inspection warning on @lombok.NonNull
...
GitOrigin-RevId: ae53fba211152012ca2542ce32f23accd2d68d2f
2026-02-13 14:31:54 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
9f44680311
[java-inspections] IDEA-349198 Catch deconstruction on null value
...
- delete unnecessary
GitOrigin-RevId: a97ff4c45b0d8c6022c663b0b2f6fa3ecb953fa3
2026-02-13 13:59:18 +00:00
Mathias and intellij-monorepo-bot
7dd10b82b1
IDEA-380160 java: Add an inspection for Math.clamp()
...
For what it should have been, the final code feels a bit over-engineered.
GitOrigin-RevId: 893e1fb82670568ef3fbf5106b132e4891b276cf
2026-02-13 13:37:41 +00:00
Marcin Mikosik and intellij-monorepo-bot
38de0d9ee7
IDEA-385435 [java]: Add inspection detecting effectively non-null param overriding not-annotated one
...
Merge-request: IJ-MR-190382
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com >
GitOrigin-RevId: 0a755a3eb1749b7971fe42dea0bceaa2df3a6bb7
2026-02-13 10:13:39 +00:00
Marcin Mikosik and intellij-monorepo-bot
be2b0bf8fd
IDEA-381733 [java]: Move type annotation quickfix is shown twice
...
GitOrigin-RevId: 57043eab4896e7cead2c716ef2370fb2dd0ef810
2026-02-12 20:01:14 +00:00
Bart van Helvert and intellij-monorepo-bot
265ec5fb37
[java] Add chooser fix for division that could change semantics
...
Adds a chooser to `ReplaceShiftWithMultiplyIntention` which allows to choose between regular division that changes semantics and floor division. By default floor division is chosen. This changes also makes it so regular division is suggested when the language level is lower than 8. #IDEA-384124
(cherry picked from commit 3e5c5bb4852098ba7b8639c2d887f7cf1298cd93)
IJ-MR-189843
GitOrigin-RevId: db19634d66f5a91282536b4c1b41fb0f8ccfcd5e
2026-02-12 15:57:26 +00:00
Marcin Mikosik and intellij-monorepo-bot
afdcd299a3
IDEA-381552 [java]: Override method: do not add redundant @NonNull under @NullMarked
...
Merge-request: IJ-MR-190042
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com >
GitOrigin-RevId: 2e35a6c573d175a66b09cf8894954f0f90b7b61f
2026-02-12 14:53:59 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
c6ca035622
[java-inspections] IDEA-349198 IJ-CR-190983 Catch deconstruction on null value
...
- use dfa
GitOrigin-RevId: 19cdc3be30263c4b3dbbfff173c557c62c376d67
2026-02-11 14:51:17 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
b873ed5577
IJ-CR-191105 [java-inspections] IDEA-379303 Nullable incompatibilities in constructor calls
...
- just super call
GitOrigin-RevId: 973220a3b1af7f8aca00881abe9c1664e50b5e37
2026-02-11 10:31:04 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
31b5a6a950
[java-inspections] IDEA-379303 Nullable incompatibilities in constructor calls
...
GitOrigin-RevId: 927bd8ab332fe6f7c6c122d7670592c7ca141b5a
2026-02-10 16:25:48 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
6d178d8680
[java-inspections] IDEA-349198 Catch deconstruction on null value
...
GitOrigin-RevId: 6eac3a29ad4cefa69c3a7fa69a85c46d98187eb6
2026-02-09 19:50:58 +00:00
Tagir Valeev and intellij-monorepo-bot
ace33e3656
IDEA-385449 [java-inspections] Follow-up cleanup
...
GitOrigin-RevId: 30861d30b340099ca9a268e81c374b77cb95eba9
2026-02-04 18:23:47 +00:00
Tagir Valeev and intellij-monorepo-bot
466473c654
IDEA-385449 [java-inspections] ExpressionUtils.isEvaluatedAtCompileTime may cause stackoverflow
...
GitOrigin-RevId: b54864f2e62a2d38f75f4b7d86e006b779ce5cd5
2026-02-03 14:08:29 +00:00
Leonid Shalupov and intellij-monorepo-bot
188b7ef96f
IJI-3282 Optimize imports
...
GitOrigin-RevId: 3b5c00d8ff20b8d0bb6005bc450921085d2da9b2
2026-01-31 17:03:42 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
438c4e4b5b
[java-frontend] IDEA-366600 Get rid of additional "Java for JetBrains Client" plugin
...
- java dependencies
Space-RevId: 7d4700ee0761048bb85d3b0a9471b74511f62fc0
GitOrigin-RevId: 9f080945a3c7b361b89c6743ec07ef9163f3e017
2026-01-29 11:31:00 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
9718731f33
IJPL-212619 Java: remove deprecated API, which was marked for removal and has no usages
...
Space-RevId: 03757d83c4ac1f0aba4d7dd2b1c94e065cf161d0
GitOrigin-RevId: fcb1a89583973b2cd6d5e06e53c7ee5cab957836
2026-01-26 20:01:33 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
175f4430dc
cleanup [java]: introduce data class instead of Pair in ClassAncestorResolver to make code more readable (IJ-CR-188646)
...
Space-RevId: 677557d66e2954f5d2996fc4adab14e87f919679
GitOrigin-RevId: c9b74011da8647de7054f18f5f77b8db347caada
2026-01-22 16:41:09 +00:00
Georgii Ustinov and intellij-monorepo-bot
5539f3af78
[Java] IDEA-384756 Handle incorrect resolve to parameter and field when detecting optimize imports intention
...
Space-RevId: 7d5d281c8a8e96e61eeb068b8149a5d98cfc52c1
GitOrigin-RevId: edc24ae68af9ff7e0ca1e1939bb6670672b63dc3
2026-01-22 09:58:45 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
f2425bec74
IDEA-268316 Java: provide API in JvmBytecodeAnalysis to collect implicit superclass references
...
Before, JvmBytecodeAnalysis processed only references explicitly mentioned in *.class files. However, javac requires having all superclasses of the classes being compiled and the classes methods from which are called in the classpath. In such cases, 'Extract Module' action and a quick-fix for extracting module in DevKit (IJPL-227635) didn't add required dependencies to the extracted module, so code fails to compile.
Here a new API JvmBytecodeAnalysis.createReferenceAnalyzerWithImplicitSuperclassReferences is introduced which can be used to take into account such implicit references as well.
GitOrigin-RevId: e4dec4e63d3a5ed70012747d386a48628275b6cb
2026-01-20 00:00:24 +00:00
Georgii Ustinov and intellij-monorepo-bot
ae1cf47d13
[Java] IDEA-384756 Do not highlight unresolved static imports as unused if there is method call in class body
...
GitOrigin-RevId: 7993fc10670ee16dffa38177a1dd99ca42ac5cbb
2026-01-19 18:18:58 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
ccc1e2f2d7
IJ-CR-188329 [java-inspections] IDEA-377682 JSpecify. Nullable incompatibilities. Calls with generics
...
- delete unused filters
- simplify switch expression
GitOrigin-RevId: 994435ac31851461cbb2b51144b734dd7a0b2c34
2026-01-19 17:27:06 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
e43677aa86
refactor [java]: move code which processes class-files from ExtractModuleService to ClassFileAnalyzer interface
...
This is needed to reuse it to improve quick-fix for DevKit inspection (IJPL-227635).
GitOrigin-RevId: a2f46e87c16d4111160ec3d9eafa09303fb7d46e
2026-01-19 15:40:48 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
30d93c30a2
refactor [java]: extract implementation of methods from ClassFileAnalyzerImpl to a separate class
...
This is needed to add more methods here to improve quick-fix for DevKit insspection (IJPL-227635).
GitOrigin-RevId: 40d0480a4d6503b31a683a9eb1390cdc4ac34aec
2026-01-19 15:40:48 +00:00
Nikolay Chashnikov and intellij-monorepo-bot
63cd89510f
refactor [java]: rename ClassFileAnalyzer.processData to processFileContent for clarity
...
GitOrigin-RevId: e7a6c8fe98f626948ebd7e54c0b42f94907dbf2f
2026-01-19 15:40:48 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
76d276b20d
[java-inspections] IDEA-377682 JSpecify. Nullable incompatibilities. Calls with generics
...
GitOrigin-RevId: 5b501cf6f6e99a675ad2e78283000a0be86fb3ff
2026-01-16 17:07:48 +00:00
Bas Leijdekkers and intellij-monorepo-bot
bf54a73345
IDEA-381887 [java]: improve messages of Java 8 inspections
...
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
2026-01-16 13:57:13 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
0780f14038
[java-frontend] IDEA-366600 Get rid of additional "Java for JetBrains Client" plugin
...
- move extension points where they are defined
GitOrigin-RevId: ab4db1b7557d6ce5b0a10fcde96be3f01f15b539
2026-01-16 10:52:27 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
a43daddb89
[java-frontend] IDEA-366600 Get rid of additional "Java for JetBrains Client" plugin
...
- add comments and check structure, disable dependencies, disable remote servers
GitOrigin-RevId: 02ce5ef35d4ea84eb376f773fce1910583a3e3fa
2026-01-15 16:28:43 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
6c3ad84680
[java-frontend] IDEA-366600 Get rid of additional "Java for JetBrains Client" plugin
...
- java backend
GitOrigin-RevId: fce68683d12e29cf35b179f848704dbe074f4d76
2026-01-15 16:28:43 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
fd36687a77
IJ-CR-187719 [java-inspection] IDEA-382441 jspecify inspection doesn't highlight assignments
...
- fix using labels
GitOrigin-RevId: 59f30bc05372fec687d713dbb7c6d596fd324ee5
2026-01-15 10:34:07 +00:00
Bartek Pacia and intellij-monorepo-bot
d5042e8d62
LSP-407 ContractInferenceIndexKt: extract contract inference gist to a service class
...
GitOrigin-RevId: e064a340a5fc3576d7fa482d9c68ff545bfae68a
2026-01-14 17:34:06 +00:00
Bartek Pacia and intellij-monorepo-bot
527e4b4d8c
LSP-390 BytecodeAnalysisGist: tiny Javadoc improvement
...
GitOrigin-RevId: 2e7428358948d24fd85ccb9fd7c6325ede426255
2026-01-14 17:34:05 +00:00
Bartek Pacia and intellij-monorepo-bot
08e1fb3327
cleanup [java-analysis-impl]: reformat ContractInferenceIndex
...
GitOrigin-RevId: 379dd428a6c0201509df77b3c5c1cca37423c325
2026-01-14 17:34:05 +00:00
Mikhail Filippov and intellij-monorepo-bot
500bd97eed
[build] IJI-2993 fix compilation errors in progressive mode
...
GitOrigin-RevId: 7cc14b9ab0ccb9e66a74b4c67eccc7b235f2be32
2026-01-14 11:00:39 +00:00
Mikhail Filippov and intellij-monorepo-bot
ea41f7932a
[build] IJI-2993 enable progressive mode for Kotlin
...
GitOrigin-RevId: f506021c20fc3b3e5ef692c9092592e3bf247036
2026-01-14 11:00:39 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
6097eb7fb1
IJ-CR-187719 [java-inspection] IDEA-382441 jspecify inspection doesn't highlight assignments
...
- delete REPORT_CONFLICT_IN_ASSIGNMENTS
GitOrigin-RevId: f654c30fbb08d3a7ec7b5359fa95b4f12ef6d018
2026-01-14 10:22:44 +00:00
Bartek Pacia and intellij-monorepo-bot
427a1cb8f3
LSP-390 EquationsExternalizer: make a singleton to prevent externalizer hashcode mismatch errors in LSP
...
LSP creates "a new copy of the world" for each request, and this caused EquationsExternalizer to be recreated too.
GitOrigin-RevId: 3f56d2a933d3d96533f5afd4c206fcecde04a716
2026-01-13 18:51:52 +00:00
Bartek Pacia and intellij-monorepo-bot
fa34bb71df
LSP-390 ClassDataIndexer: extract bytecode analysis gist to a service class
...
GitOrigin-RevId: d025f80292cca8a7ca9961be1e7318961a9dc3cf
2026-01-13 18:51:52 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
453ca78ef1
[java-inspection] IDEA-382441 jspecify inspection doesn't highlight assignments
...
GitOrigin-RevId: 29497c955c64040544a3bf4af0af0edd08763201
2026-01-13 12:40:21 +00:00
Aleksey Dobrynin and intellij-monorepo-bot
2b71f8e416
[junit, inspection, quickfix] IDEA-384337 handle @Suite without selectors
...
GitOrigin-RevId: 50f4e3a5d19ff94a7b9d6a27e4d2af30d8459d73
2026-01-08 17:54:06 +00:00