Vladimir Krivosheev and intellij-monorepo-bot
67a6dac7f8
IJPL-209476 IJ-CR-146078 kotlinx-datetime-jvm, kotlinx-document-store-mvstore, kotlinx-html-jvm, kotlinx-serialization-protobuf, kotlinx-collections-immutable
...
GitOrigin-RevId: 058331a1e834d7780456f98d003afe56abfc36a0
2025-10-12 11:10:47 +00:00
Aleksey Dobrynin and intellij-monorepo-bot
82e7c16852
[java jigsaw inspection] update the empty module-info file check to skip the current module and java.base IDEA-379419
...
GitOrigin-RevId: 31effa497149f7b5ac3712de01c653166fcbd814
2025-10-07 14:50:48 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
4b619431c2
IJ-MR-175479 IJ-CR-146078 IJPL-209476 fast-util
...
GitOrigin-RevId: 87af2a3aad6e264a9b332c20ff572ec735f741f2
2025-10-06 16:34:02 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
0272d6a0c7
IJ-MR-175479 IJ-CR-146078 IJPL-209476 miglayout-swing, mvstore, proxy-vole, rhino, winp
...
GitOrigin-RevId: 18f6ef6f31cc80b26bca98a7ab025e2ade284102
2025-10-06 16:34:02 +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
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
Mikhail Pyltsin and intellij-monorepo-bot
becdcec3f7
IJ-CR-175794 [java-inspection] IDEA-379192 Type pattern switch statements: IDEA code inspection fails to consider inheritance
...
- add javadoc
GitOrigin-RevId: ab24dbc69c273a884dc79c36940f9373ba7d7256
2025-09-19 13:27:49 +00:00
Alexey Kudravtsev and intellij-monorepo-bot
f0ec94ff59
notnull
...
GitOrigin-RevId: 4620f6f17c1a377d5a3e13ebe667146ee70f0d83
2025-09-17 17:44:23 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
5c182bf05e
[java-inspection] IDEA-379192 Type pattern switch statements: IDEA code inspection fails to consider inheritance
...
GitOrigin-RevId: fdb6c97e5b7501a3e582c9764a5eb62d2d2e1467
2025-09-16 16:10:43 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
fe718e2875
[java-inspection] IDEA-379323 IDEA-379318 improves name generation for deconstruction patterns
...
GitOrigin-RevId: 43b49218eb088fb3d2bd03dd7bdeff0aaad0c6cb
2025-09-16 11:58:39 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
c3826e657d
[java-inspection] IDEA-379322 Pattern conversion is suggested when the record variable is used
...
GitOrigin-RevId: d1d378f0264d23227afbadcb11ec4f2f8c2dcf49
2025-09-16 11:58:39 +00:00
Tagir Valeev and intellij-monorepo-bot
fd093ea5ff
[multiple] Cleanup: use record patterns
...
GitOrigin-RevId: dca054f83dadfb60c9aa1b0d950423fc55e3a7a3
2025-09-15 14:09:19 +00:00
Tagir Valeev and intellij-monorepo-bot
c387faa3f6
[multiple] Cleanup: use case null
...
GitOrigin-RevId: da8a48447029016c410d7f6886c3888c6bd06171
2025-09-15 14:09:19 +00:00
Tagir Valeev and intellij-monorepo-bot
865726ee14
[java] cleanup: use reversed iteration
...
GitOrigin-RevId: d06c8b96458e1f73308825669af589888ed67aef
2025-09-15 08:54:13 +00:00
Tagir Valeev and intellij-monorepo-bot
53489602f1
[java] cleanup: use getLast/getFirst/etc.
...
GitOrigin-RevId: e77d2952e8d83aedd00784a2b3290c6c92460717
2025-09-15 08:54:13 +00:00
Tagir Valeev and intellij-monorepo-bot
2bc43dfd13
[java] cleanup: try using enhanced switch instead of instanceof in Java plugin
...
GitOrigin-RevId: 10d311406ce7774656f85abb26f7854ae3f3abd7
2025-09-15 08:54:13 +00:00
Tagir Valeev and intellij-monorepo-bot
2bd42bb487
[java-intentions] IDEA-379168 Suggest renaming underscore variable when it's used.
...
GitOrigin-RevId: eb0cfd7ddf8d5d730198ea5cd064cca79724348e
2025-09-11 18:13:46 +00:00
Bartek Pacia and intellij-monorepo-bot
27ed833ec6
[java-inspections] IJ-CR-174663 Minor optimization in RedundantStreamOptionalCallInspection
...
Explanation from Tagir Valeev:
You can use `lambda.getParameterList().getParameter(0)` to avoid array creation.
Also, though a minor thing, it's better to extract `lambda.getParameterList()` to a separate variable.
Children PSI elements are not readily available inside the fields (as we try to keep PSI compact in memory).
So every access to a specific child like `getParameterList()` involves children traversal.
See the implementation inside `com.intellij.psi.impl.source.tree.java.PsiLambdaExpressionImpl#getParameterList`.
It's quite fast, but still not as fast as field reading, so I prefer to avoid duplication if possible
(especially, inside the inspections, as they are always analyzing the code in background, so their performance is quite relevant)
GitOrigin-RevId: a7325d79eb459cb07cea44593c357d24f2814d8a
2025-09-08 18:35:53 +00:00
Bartek Pacia and intellij-monorepo-bot
363abff9a3
[java-inspections] ClassCanBeRecordInspection: annotate with @NotNullByDefault
...
GitOrigin-RevId: 84cd9499ecb4f3dc49d2366ab22467460e21a84f
2025-09-04 20:14:35 +00:00
Bartek Pacia and intellij-monorepo-bot
9f24588025
[java-inspections] RecordBuilder: annotate with @NotNullByDefault
...
GitOrigin-RevId: fc71bd7a9c025f63f28f3e3cae6d7dd86d73518c
2025-09-04 18:40:19 +00:00
Bartek Pacia and intellij-monorepo-bot
877652b6fb
[java-inspections] IDEA-375458 Remove false-positives when cast or stream mapping is added to explicitly change nullability
...
Merge-request: IJ-MR-174003
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 11262e4d6da8be5a8ebd664c4415d8b812f12b6e
2025-09-04 18:15:35 +00:00
Bartek Pacia and intellij-monorepo-bot
29d3066a8a
[java-inspections] cleanup in ClassCanBeRecord: use @NotNullByDefault, improve toString()s and some names
...
GitOrigin-RevId: 2297f524fec11463a3cd2c2b3d3d1c4f366fd2ec
2025-09-04 18:13:32 +00:00
Bartek Pacia and intellij-monorepo-bot
c1c102bcd6
[java-inspections] IDEA-371645 ClassCanBeRecord: change option phrasing and change default option
...
See the linked ticket for more discussion.
GitOrigin-RevId: 7ebc61d24678bb8ed5e5f71507d12802c39b46ff
2025-08-22 18:06:21 +00:00
Bas Leijdekkers and intellij-monorepo-bot
89ba8e5b37
Java: minor optimization, move possible expensive psi tree walking after cheaper tests
...
GitOrigin-RevId: 7ac1c7e30c2a9006b67fd08ccfc544ca4fe07f1e
2025-08-20 19:08:19 +00:00
Ilia Kirianovskii and intellij-monorepo-bot
dc268560b6
[bazel] Update build files (IJI-2835)
...
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Bas Leijdekkers and intellij-monorepo-bot
00a12f6311
Java: avoid CCE when class is not inside a PsiJavaFile
...
GitOrigin-RevId: 7de7fb69e89b16488e66e1912a2f38dd61a1f7e8
2025-08-19 18:30:46 +00:00
79ad940ac3
[java-inspections] IDEA-373515 Fix 'Collapse loop with stream forEach()' breaking when static star import is used
...
Thanks for help, Bas!
Co-authored-by: Bas Leijdekkers <bas.leijdekkers@jetbrains.com >
GitOrigin-RevId: 1ab70d08fe4a1ea0c050d725bc0ec5149d019b7c
2025-08-13 19:38:36 +00:00
Bartek Pacia and intellij-monorepo-bot
1933cff91d
[java-inspections] ConvertRecordToClass: reformat code
...
Also some very minor simplifications.
GitOrigin-RevId: 6caed0d407cf57a03e1b009eb8e1b6adbd5478d6
2025-07-24 15:44:06 +00:00
Bartek Pacia and intellij-monorepo-bot
384493143b
[java-inspections] IDEA-374865 ClassCanBeRecord: fix edge case with method call in anonymous class constructor
...
In response to IJ-CR-167896
GitOrigin-RevId: 3915e8b287cdeaeaf1fdfc436661110f84d76434
2025-07-16 17:38:14 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
b12ff61e37
[java] IJ-CR-167924 IDEA-371865 Inspection to convert 'System.out'<->'IO'
...
- add case for several qualifiers
GitOrigin-RevId: e422d2f595e29a3ff3f56f01dbbc6fa7c52d9e8d
2025-07-09 19:21:06 +00:00
Bartek Pacia and intellij-monorepo-bot
b7ba10b29b
[java-inspections] IDEA-374865 ClassCanBeRecord: fix more edge cases found by Bas
...
In response to IJ-CR-167896
GitOrigin-RevId: 5c472609a72edc206ac42486fc0f6ecb25ed09b6
2025-07-09 18:20:43 +00:00
Bas Leijdekkers and intellij-monorepo-bot
546defb6f8
Java: inner class accessing local variable or parameter can't be static (IDEA-375602)
...
GitOrigin-RevId: 1b16d1388c09d51009b288ede89e73d156364619
2025-07-09 00:31:24 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
7369bd9f90
[java] IJ-CR-167924 IDEA-371865 Inspection to convert 'System.out'<->'IO'
...
- extract "java.lang.IO"
- tests for allowUnresolved
- more reliable works with varargs
GitOrigin-RevId: 8376baaa86afa3806cb096cffd42e9ed0db0d451
2025-07-08 22:10:37 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
de315fe676
[java] IJ-CR-167924 IDEA-371865 Inspection to convert 'System.out'<->'IO'
...
GitOrigin-RevId: 810b99e29ae3b425287263935f242136fdba71c4
2025-07-08 22:10:37 +00:00
Bartek Pacia and intellij-monorepo-bot
32d300d888
[java-inspections] IDEA-374865 ClassCanBeRecord: fix edge case with property access on same class but different instance
...
In response to IJ-CR-167896
GitOrigin-RevId: 91b304e8999e162095a3f1cfe541dae252234a47
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
90c2e9dc98
[java-inspections] IDEA-374865 ClassCanBeRecord: fix edge case with calls to super methods
...
Now quick-fix is not shown when, in the class constructor, a method from superclass/superinterface is called before the class is ready for that. Basically, respect javac behavior.
In response to IJ-CR-167896
GitOrigin-RevId: 421fc995c478ec20e39292ed02a32cb249b6398b
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
da203f41d0
[java-inspections] IDEA-374865 ClassCanBeRecord: fix this not being considered a reference to containing class
...
In response to IJ-CR-167896
GitOrigin-RevId: e1046f37f326ea127d14d27d332001800e46d327
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
3c61fc793b
[java-inspections] IDEA-374865 ClassCanBeRecord: make containingClass local in ConstructorBodyProcessor
...
Replaced the field with a local variable to simplify the class structure.
In response to IJ-CR-167896
GitOrigin-RevId: d1678890cdb3733d7f670a5d63c6d854e1926b0c
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
dd147c932a
[java-inspections] ClassCanBeRecord: make myIgnoredAnnotations field final
...
Just applying the inspection from IntelliJ.
GitOrigin-RevId: 08416db5c2cc2320cfd34e0f9541d80165d34feb
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
8c14a04254
[java-inspections] ClassCanBeRecord: remove redundant @NotNull annotation
...
Fixes the "Redundant nullability annotation in the scope of @NotNullByDefault" warning.
GitOrigin-RevId: a870b1513cb2ad429f1ff5b7cf5b546121e6a2f4
2025-07-08 21:40:33 +00:00
Bartek Pacia and intellij-monorepo-bot
70da0861d7
[java-inspections] ClassCanBeRecord: reformat code, optimize imports, and fix a typo
...
GitOrigin-RevId: 62692165487b1166ea671a66d9d1ff5ade8da980
2025-07-08 21:40:33 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
09d46b2382
[java] IDEA-371865 Inspection to convert 'System.out'<->'IO'
...
- fixes for comments
- simplified replacement
- support char[]
- support ImplicitArrayToStringInspection
GitOrigin-RevId: 49f9f829821a498259aa53ebb12cd0b0007f1238
2025-07-04 17:57:16 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
3a52f8601c
[java] IDEA-371865 Inspection to convert 'System.out'<->'IO'
...
GitOrigin-RevId: fdb87ffc06388bd022224000c7b4e8d9e2013e9d
2025-07-02 17:32:09 +00:00
Bartek Pacia and intellij-monorepo-bot
a4c688156c
[java-inspections] IDEA-374865 ClassCanBeRecord inspection: support JEP 513 "Flexible Constructor Bodies"
...
GitOrigin-RevId: a2c2b1a371904fb6d2c9394853b64defcd48156b
2025-07-02 17:06:05 +00:00
Bartek Pacia and intellij-monorepo-bot
7ca0f770af
[java-inspections] class to record: use util methods from PsiConstructorUtil instead of custom ones
...
GitOrigin-RevId: 5557103486c90480720f051a3fdc84e0c4b0aed1
2025-07-01 17:45:59 +00:00
Bartek Pacia and intellij-monorepo-bot
e15ffa8713
[java-inspections] IDEA-371903 Add @SuppressWarnings for false-positive "unused constructor" warning
...
GitOrigin-RevId: 03439754db4d94689d19e782b52a4726c4c86b7d
2025-07-01 17:45:59 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
26814db524
[java-inspections] WIP IDEA-374760 Move implicit classes inspections to Java 25 migration aids category
...
- move to java 25 folder
- update tests and fix error with incorrect resolve with new language levels
- IO.println will be updated later
GitOrigin-RevId: 93985096433766e33178da6048ce4554063841a2
2025-06-24 23:04:26 +00:00
Bas Leijdekkers and intellij-monorepo-bot
c97b9104a2
Java: no highlight, only fix on numeric literals of length 4 (IDEA-261998)
...
GitOrigin-RevId: aea6ef78149c1a2cf6d9bc3e98713c6bb9eb2035
2025-06-20 18:38:03 +00:00
Bas Leijdekkers and intellij-monorepo-bot
e0ff0f3d41
Java: cleanup
...
GitOrigin-RevId: 420392bb2398f267e975fe927703d6c68d71b96d
2025-06-20 18:38:03 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
f821c646cd
IJ-MR-162467 don't export intellij.platform.codeStyle
...
GitOrigin-RevId: e2c2af372d81e3e83dbf22d49381fea92e5e8a17
2025-06-19 20:15:58 +00:00