Andrey Cherkasov
0ed3d0e811
[java-inspections] LocalCanBeFinal: check class for pattern variables
...
IDEA-309250
IJ-CR-100646
GitOrigin-RevId: 42f402c8521e889f9734abeed1363ef82f9bbe22
2023-01-23 10:51:02 +00:00
Andrey Cherkasov
d6f03ffcb4
[java] DeleteSwitchLabelFix: fixes after review
...
GitOrigin-RevId: 00d2ac419d6684b35c100ddfcee490e189f2fc30
2023-01-21 21:46:24 +00:00
Andrey Cherkasov
e76198cd82
[java-highlighting] Minor refactoring
...
GitOrigin-RevId: 366db78de34b4f7ac748f50239325034436d234d
2023-01-21 21:46:16 +00:00
Tagir Valeev
6253884c82
[java-refactoring] CodeBlockSurrounder: allow if-splitting when extracting from && chain when else-branch is mutually exclusive
...
Fixes IDEA-309095 Improve the Safety of "Introduce Variable" Refactorings concening ClassCasts
GitOrigin-RevId: a9c401378523aaf0142cde161e477a3675de3d5f
2023-01-19 16:16:47 +00:00
Tagir Valeev
d288fc7bb1
[kotlin-dfa] Fix anchor for array store (KTIJ-24314)
...
GitOrigin-RevId: 795f7978bd12cc4cf02abff89c913b9cc5583b14
2023-01-19 11:38:31 +00:00
Nikolay Chashnikov
91d3e0a72b
cleanup: remove redundant '@author' tags from javadoc comments - 26
...
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.
GitOrigin-RevId: 535941a4b79bc36c173a27f3e505b43ffc85edc1
2023-01-18 17:02:50 +00:00
Nikolay Chashnikov
c17297cce7
cleanup: remove redundant '@author' tags from javadoc comments - 23
...
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.
GitOrigin-RevId: 4623bf3b267b86b3190f505ac249aa2f461c54dd
2023-01-18 17:02:40 +00:00
Nikolay Chashnikov
c1f2c8a692
cleanup: remove redundant '@author' tags from javadoc comments - 9
...
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.
GitOrigin-RevId: fcf3f973d7c945698016443c015023e73ac71572
2023-01-18 17:01:54 +00:00
Nikolay Chashnikov
1487a324c4
cleanup: remove redundant '@author' tags from javadoc comments - 7
...
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.
GitOrigin-RevId: f2a6ec37a89b7497556ced0b92be3fa7679ba304
2023-01-18 17:01:47 +00:00
Nikolay Chashnikov
98b622aa27
cleanup: remove redundant '@author' tags from javadoc comments - 5
...
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.
GitOrigin-RevId: e1f798814ca7f22747768b99cbcd962d820bbfb9
2023-01-18 17:01:41 +00:00
Roman Ivanov
fe14e15bbe
[java] fix tests after migration to PsiForeachPatternStatement
...
GitOrigin-RevId: 03ee3891a40d75beebb1be84b803bc04b31109b3
2023-01-18 13:59:08 +00:00
Roman Ivanov
aef97bed9a
[java] migrate to PsiForeachPatternStatement
...
GitOrigin-RevId: c6aaaff4a4967f66aa7637d15c2d859f5dbfa671
2023-01-18 13:59:01 +00:00
Andrey Cherkasov
3f34cfe3ea
[java-highlighting] 'switch' expression does not cover all possible input values: false positive on reference types
...
IDEA-309593
GitOrigin-RevId: f869a8a1a98fd7789f5d07290797205205733899
2023-01-18 12:12:10 +00:00
Andrey Cherkasov
59d7b0c4c5
[java-highlighting] switch has both an unconditional pattern and a default label: false negative
...
IDEA-310722
GitOrigin-RevId: 1dfaeb0a35715757272dfaa4f10dc0e7ed628101
2023-01-17 18:02:27 +00:00
Andrey Cherkasov
12c6c8f2c5
[java] Highlight "Duplicate unconditional pattern" instead of "Label is dominated by a preceding case label"
...
IDEA-310687
GitOrigin-RevId: edc302b7042dd5cfc79903644dadcf3238bc97c2
2023-01-17 18:02:24 +00:00
Andrey Cherkasov
9672b771d4
[java-inspections] Switch label is unreachable: false positive when there is a compile-time error
...
IDEA-310689
GitOrigin-RevId: 59eba93e68bf67c3d769e8e03eac31daac84a17c
2023-01-17 18:02:21 +00:00
Tagir Valeev
35c501455e
[java-highlighting] Remove unhelpful fixes when type inference fails
...
GitOrigin-RevId: a4da4b47eabbcf5438ff9d1de82240d4880b8c50
2023-01-17 15:37:21 +00:00
Tagir Valeev
b2dfb4c8a8
[java-highlighting] Do not report lambda return value error if its return type contains unsubstituted type variable
...
Fixes IDEA-310129 IDE hint a wrong position of Java method param compile error
Also: AdaptExpressionTypeFixUtil: try to determine wrong parameter even if several parameter types mention type parameter
Also: AdaptExpressionTypeFixUtil: new type mismatch fix to replace call with qualifier
GitOrigin-RevId: fbc63c0eb3415983ccf52ed5ade15b5895b65b21
2023-01-17 15:37:18 +00:00
Tagir Valeev
5cef9a17e6
[java-psi] IDEA-310203 Support type inference changes in Java 20
...
GitOrigin-RevId: 6a2699b68b1babf14683df9939033cd394f87a8d
2023-01-17 09:26:59 +00:00
Alexey Kudravtsev
b9ffefc4e7
pass PsiFIle explicitly to avoid querying PDM to fix EA-709455 T: DirectoryIndexImpl.getInfoForFile
...
GitOrigin-RevId: c01d9b3d7e12e1884911a12f470ac25a1c93eff9
2023-01-16 23:35:09 +00:00
Andrey Cherkasov
62ebc2616f
IDEA-310575 A total pattern is now called an unconditional pattern
...
GitOrigin-RevId: 306b7b66d45e6f92bc2629db93241630156e5164
2023-01-15 05:39:37 +00:00
Andrey Cherkasov
e008c6522f
[java-inspections] DuplicateBranchesInSwitch: adapt the inspection to Java 20
...
IDEA-310260
GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
2023-01-15 05:39:32 +00:00
Andrey Cherkasov
13b5f3d866
[java-highlighting] Record Patterns (Second Preview): remove support for named record patterns
...
IDEA-310052
GitOrigin-RevId: 0128d70c6343a65e44bf14bef7d89aeb94599c71
2023-01-15 05:39:26 +00:00
Tagir Valeev
8e69df225a
[inspections] Pass Project to StringValidator; use it in JavaClassValidator
...
GitOrigin-RevId: 19fc9b2d0145396c89e77fbe7ce368e0518ffcad
2023-01-10 19:30:38 +00:00
Daniil Ovchinnikov
578eaaf60e
rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
...
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Andrey Cherkasov
673b365e2a
[java-highlighting] Check applicability of an iteration declaration iff a correspond feature is available
...
GitOrigin-RevId: 17b95eee81d2a3c17231e1d923db9b3db8f23f1f
2023-01-06 19:27:00 +00:00
Andrey Cherkasov
f884fcde64
[java-highlighting] foreach patterns: applicability and exhaustiveness
...
GitOrigin-RevId: f136201891af221d3ffa9065363da9894bf56e55
2023-01-06 19:26:51 +00:00
Andrey Cherkasov
4c2d17acba
[java-highlighting] Pattern matching for switch (fourth preview): illegal falling-through
...
IDEA-309572
GitOrigin-RevId: 2dbf9102e0302fa84ad358c9afb0b21df7a877eb
2023-01-04 18:41:04 +00:00
Andrey Cherkasov
1bd43d1955
[java-inspection] MissingPackageInfoInspection: Fix exception
...
IDEA-309505
GitOrigin-RevId: 4db0c14ec59e084c46438b26bdc3c0bfca047a71
2023-01-04 12:39:44 +00:00
Andrey Cherkasov
177762f804
Fix java.lang.ArrayIndexOutOfBoundsException
...
IDEA-309250
GitOrigin-RevId: 26e28dfa1712675cb532528d6b63331135001063
2023-01-04 12:39:39 +00:00
Andrey Cherkasov
468b4d470a
[java] DeleteSwitchLabelFix must produce 'default:' instead of 'case default:'
...
IDEA-309550
GitOrigin-RevId: 3224934e68d9b0f9008fe7305f0209d3487a7f65
2023-01-04 12:39:33 +00:00
Bart van Helvert
f7f5f996fd
Revert "[java] Make RemoveAnnotationQuickFix jvm compatible"
...
This reverts commit e23bcb5adb816e3c2abf83876fcf2c02e7d6d41a.
GitOrigin-RevId: 3b30398b8eb3eca5b9a967f7cd9ffdd711fc29e9
2023-01-03 13:55:55 +00:00
Bas Leijdekkers
9591864c25
Java: don't report missing semicolon after an unclosed string literal
...
GitOrigin-RevId: 189b184bfdebee7a59018c3da89e964423acef91
2023-01-02 13:15:59 +00:00
Vladimir Krivosheev
57764d700b
mark classes final
...
GitOrigin-RevId: 6414b6f2119c82c7567987dd30b35cab5491d9e2
2022-12-30 06:58:01 +00:00
Bart van Helvert
7eae726be0
[java] Make RemoveAnnotationQuickFix jvm compatible
...
GitOrigin-RevId: e23bcb5adb816e3c2abf83876fcf2c02e7d6d41a
2022-12-29 16:21:24 +00:00
Dmitry Jemerov
9ea75083e1
https://github.com/JetBrains/intellij-community/pull/1771
...
GitOrigin-RevId: f9549d196e1ae273d1dadc1a21c692c0d4665d0e
2022-12-29 14:39:25 +00:00
Vladimir Krivosheev
1d7ab0ad7e
use java or fastutil linkedhashmap
...
GitOrigin-RevId: e3406cb525983cba8952b7541c57e278e58ca7b5
2022-12-29 11:24:52 +00:00
Bas Leijdekkers
8614458d39
Java: remove unnecessary special casing for pattern variables
...
language level 15 Preview which required it has been removed a year ago
GitOrigin-RevId: 913335cfe25710f9f1fda406a875c47eb220c47c
2022-12-29 11:11:33 +00:00
Andrey Cherkasov
b56985873a
[java-highlighting] JEP 432: A 'case null, default' label dominates all other switch labels
...
A 'default' label dominates a case label with a case pattern, and it also dominates a case label with a 'null' case constant.
IDEA-309549
GitOrigin-RevId: 6877992c530e41a1200ea7c20d6405da4be0324b
2022-12-29 00:57:49 +00:00
Andrey Cherkasov
5bc370c995
[java-highlighting] Deduplicate code
...
GitOrigin-RevId: 5e0d992e1626d2bd356356f1630d218377e65ea7
2022-12-29 00:57:45 +00:00
Andrey Cherkasov
e6a2a47292
Use pattern instanceof
...
GitOrigin-RevId: f84bd87a3d0c6d2c72d516bdffb200ce8cfdfcaa
2022-12-29 00:57:42 +00:00
Tagir Valeev
6b12fe657e
[java-inspections] Use OptPane instead of class selector list
...
GitOrigin-RevId: da749fbf570b6ad4ca66adcee56d9ab58f3994ce
2022-12-28 12:35:53 +00:00
Tagir Valeev
4a5982ce55
[inspections] Minimal support for StringValidatorWithSwingSelector in OptSet
...
GitOrigin-RevId: 5094274836c8e9b2a3b07323ae509e45488ae4cf
2022-12-28 08:52:05 +00:00
Andrey Cherkasov
8b5180c01f
[java-inspection] LocalCanBeFinal: pattern variable support
...
IDEA-309250
GitOrigin-RevId: 649fa4e75d40c911fb24002396ba65542d1fc09d
2022-12-26 13:39:27 +00:00
Andrey Cherkasov
608c99ed4d
[java-highlighting] Display error if record patterns in for-each loops aren't available (IDEA-309351)
...
GitOrigin-RevId: 0919de47769682aff2c016920175a74d89c9f7b6
2022-12-26 13:39:22 +00:00
Tagir Valeev
ce032b58f0
[java-inspections] UnusedDeclarationInspection: OptPane used; refactoring
...
All extra buttons -> JavaInspectionButtons
Controls -> JavaInspectionControls
VisibilityModifierChooser removed
GitOrigin-RevId: 428052e5ef6c86c941f64eb7731c692674a6d394
2022-12-24 17:19:43 +00:00
Tagir Valeev
fb6e8d4302
[inspections] OptionController; composing options
...
GitOrigin-RevId: 1ef89dce3166f99847ed86263d3a58f3efa0fd03
2022-12-22 21:07:34 +00:00
Andrey Cherkasov
7bf9474dac
[java-highlighting] Provide quick-fix for the "Package annotations should be in file package-info.java" error
...
IDEA-216254
GitOrigin-RevId: 9d8c4074babff861b5702caa09dd320de5d63d72
2022-12-22 15:59:18 +00:00
Alexey Kudravtsev
85cba53f45
cleanup
...
GitOrigin-RevId: bc0e594b0d6c36757d9a486da7173c4957359e7f
2022-12-22 13:08:28 +00:00
Tagir Valeev
0db79fcd6d
[java-inspections] Convert to OptPane
...
GitOrigin-RevId: 4043f5d75abf085d67e9f567232b16cc7dcd65c6
2022-12-21 13:03:54 +00:00