Commit Graph

5602 Commits

Author SHA1 Message Date
Bas Leijdekkers
cb7ac04d17 Java: handle classes without a qualified name better (IJ-CR-144804)
GitOrigin-RevId: 88ee8c15122aaca6028b591d8538e18de0882643
2024-09-16 18:13:55 +00:00
Tagir Valeev
05de6a6bdb Less raw types
GitOrigin-RevId: 2a6e712b4017cf1ead7870543e562acb654fbeaf
2024-09-16 11:23:15 +00:00
Tagir Valeev
5cc7875bbc [java] Remove unused CompositeInstructionClientVisitor.java
GitOrigin-RevId: c95fedf0b01f3f4d3ea6404a15b0a4cdccf9a805
2024-09-13 11:01:30 +00:00
Bas Leijdekkers
c40e983f98 Java: rename method correctly if the name conflicts with javadoc reference (IDEA-355643)
GitOrigin-RevId: c1ae53780e8ec3a56834dd32ecd9bc19cfd222fb
2024-09-12 18:27:21 +00:00
Tagir Valeev
dbfdbb4d40 [java-stubs] TypeAnnotationContainer: properly report annotation owner from generated annotations
Fixes IDEA-354380 Erroneous null warning when using jspecify 0.3 NonNull bounds in generics
The wrong owner caused malfunction of a condition inside DfaPsiUtil.getElementNullability. As a result, we weren't able to merge declared nullability with instantiation-based nullability for compiled code

GitOrigin-RevId: 3ae900174cb7d34a801f07d9644997c85d257b9f
2024-09-12 15:11:36 +00:00
Tagir Valeev
b134b6c346 [java-stubs] JavaClassElementType: parameterize better
GitOrigin-RevId: 0f5e7c62a9844ba81eb038fb3e0c293772684560
2024-09-12 15:11:36 +00:00
Bas Leijdekkers
3eace12483 Java: avoid unnecessary regex compilation and matching
GitOrigin-RevId: c58621b89c1594d24e7ea23d6dab6f86d7a80112
2024-09-12 09:51:54 +00:00
Tagir Valeev
473076118f [java] getTypeParameterIndex: NotNull
GitOrigin-RevId: 40c014f3395e2d654d005ecd04cd21ca3805fde9
2024-09-10 23:44:55 +00:00
Mathias Boulay
2cfd03bd80 fix(JavaDoc-gen): compilation on backport, Better rendering, respect IDE options
Fixes IDEA-354610, IDEA-353932
Partially addresses IDEA-352642

fix(JavaDoc-format): handle indent on markdown

fix(JavaDoc-backport): fix compilation

GitOrigin-RevId: 5d1705da21be59ec0bc92a1b35bdf986a3227064
2024-09-09 12:59:51 +00:00
Lev Leontev
4478324e2a IDEA-358871 honor exclusion in CoreJavaDirectoryService#getPsiClasses
GitOrigin-RevId: 19fa5bfadef763431bcf025773127cb58f01f850
2024-09-06 19:39:11 +00:00
Tagir Valeev
ec5666b7cc [java] IDEA-358832 Newer java.lang classes should not be resolved on older language level
GitOrigin-RevId: de3f26ca24a881d0daf5eeb7349a5b22058ef40d
2024-09-06 12:04:27 +00:00
Mathias Boulay
245479dba8 fix(JavaDoc): escaped brackets spacing, reference link with 2+ args
Links like [String#copyValueOf(char\[\], int, int)] won't have an additional space for no reason
Links like [String#copyValueOf(char\[\], int, int)] can now be clicked on for navigation purposes.

GitOrigin-RevId: 42cb742a641b767a82820f5d01a9baff4e78811e
2024-09-04 15:20:28 +00:00
Tagir Valeev
8b073a6842 [java-stubs] Bump ClassFileStubBuilder.STUB_VERSION
Looks necessary after [java-stubs] TypeInfo: remove special processing of unqualified Object and String

GitOrigin-RevId: 65ca6722d3f0fd1658cc54382b28a78524e20d05
2024-09-03 12:37:37 +00:00
Tagir Valeev
bab02f85ff Remove redundant casts
GitOrigin-RevId: 0ac4441bd3207f090a7d2f1b8e6718fdadaf3553
2024-09-02 21:01:25 +00:00
Mathias Boulay
286567da08 fix(JavaDoc): Collapsed markdown comments with wrong suffixes
Not perfect at all, it should be able to rely on the commenter API instead.

GitOrigin-RevId: f41d181e9f27905bca1156912b7850f5a96ba943
2024-09-02 16:39:21 +00:00
Mathias Boulay
d4e45d6061 tweak(JavaDoc): Disable some inspections on older javadoc
Some inspections are pointless to check, related to javadoc tags.

GitOrigin-RevId: b7bb8bba4b51f1d90678705af3da8e5e5c4a4907
2024-09-02 16:39:21 +00:00
Tagir Valeev
145cb49135 [java-stubs] TypeInfo: remove special processing of unqualified Object and String
They are useless for Cls stubs and de-facto rarely used in Psi stubs but may cause bugs like IDEA-356054 Unable to open file when contents references inner class of "Object"

GitOrigin-RevId: da7cf23835e93a19a615e4c5d18e99d31528e1a7
2024-09-02 12:18:12 +00:00
Mathias Boulay
19b9a28603 fix(JavaDoc): Refactoring misplaced tags
GitOrigin-RevId: 313091e94f8b65d379615f91dca7b975428aeeba
2024-09-02 10:36:29 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Bas Leijdekkers
f198a23cdf Java: don't evaluate enum constants as constants expressions
GitOrigin-RevId: c5d703ce78b569a3bdab9e8e9dcc2e95bdadd07f
2024-08-29 19:03:09 +00:00
Bas Leijdekkers
ed81723f17 Java: don't evaluate constant for incomplete expressions
GitOrigin-RevId: 15542db6b8631edbc96bd7ea9cc2b1a975fcbcbb
2024-08-29 19:03:09 +00:00
Bas Leijdekkers
8827db8d65 Java: remove enum functionality from constant evaluator
GitOrigin-RevId: edcb80e7ddeee3a45b83c98cf77f3c56fd850298
2024-08-29 19:03:09 +00:00
Alexey Kudravtsev
8dea809c37 cleanup
GitOrigin-RevId: 840fc5a04665f2560a76447f394151270ead2774
2024-08-29 17:34:57 +00:00
Mathias Boulay
d03ded346a fix(JavaDoc): Inline code block support
GitOrigin-RevId: ac902221d848139b9a92559b0f61558cfb259319
2024-08-29 16:55:53 +00:00
Mathias Boulay
2bd10fba65 fix(JavaDoc): Html code support in tags
GitOrigin-RevId: b4d6a52b9e5a8f292a41b5b94e93b6bfd16364b9
2024-08-29 16:55:53 +00:00
Mathias Boulay
2750d267ea fix(JavaDoc): better language highlight on codeblock
GitOrigin-RevId: 2445935a3c083ecca24d899a300d02c08378f525
2024-08-27 18:12:21 +00:00
Mathias Boulay
d69bdfe6a4 fix(JavaDoc): illegal character on escaped array types
GitOrigin-RevId: dd8098159715bd42510d807077d2679b365c546f
2024-08-27 17:29:56 +00:00
Alexey Kudravtsev
baa254d5eb IJPL-160883 Apply ChangeLocalityDetector even if PSI reference or declaration is changed
do not disable ChangeLocalityDetector produced scope when the reference was changed in languages other than Java/Kotlin, because the rules might be different there. Instead, move that logic inside the java/kotlin ChangeLocalityDetectors

GitOrigin-RevId: 4aafa966186fe038c25e0a2512c80ba1b1d93eeb
2024-08-26 17:04:03 +00:00
Mathias Boulay
d56883b763 fix(JavaDoc): formatter, inspections
GitOrigin-RevId: 77686401cbf38ea31e93311a608bac7472ccc73c
2024-08-26 10:42:10 +00:00
Mikhail Pyltsin
cd14483af8 [java-highlighting] IDEA-357866 Spurious "Different case kinds used in the switch" error on incomplete code
- improve error message

GitOrigin-RevId: 2a8da472e07dd10bdb0ae75e679b6056ab884b72
2024-08-22 16:03:56 +00:00
Mathias Boulay
6ebdc205ef feat(javadoc): early markdown support part 2
GitOrigin-RevId: 74093daa489fda535b3951828d6617519e5d293f
2024-08-14 02:45:23 +00:00
Mathias Boulay
3825899d51 feat(IDEA-353092): early markdown jdoc support
GitOrigin-RevId: 8c02012551f1a97d3f5d6aed021889911b138b28
2024-08-13 11:44:06 +00:00
Mikhail Pyltsin
c60037c8b3 [java] IDEA-355048 Support binary files (.class) in split mode
GitOrigin-RevId: ea7a098ef33476d53dd8bf061810835510885466
2024-08-06 20:55:58 +00:00
Aleksey Dobrynin
2616038ffc [java, import-module] resolve "import module" jep 476 IDEA-355535
IJ-CR-140196

GitOrigin-RevId: 3c445405dbab1dcbb84050ce2353a03a8ce100aa
2024-08-06 14:50:39 +00:00
Mikhail Pyltsin
b4fc8dafba [java-inspections] IJ-CR-140943 IDEA-356672 Support JEP 477. Incorrect intentions and actions with implicit imports
- reuse Graphs

GitOrigin-RevId: 0f2216ea150f27f74e198a306ab0df4b3f9fbdf4
2024-08-05 10:26:33 +00:00
Bas Leijdekkers
891e3e3702 Java: restore property used in external plugin
GitOrigin-RevId: 7a36d4aa3299a65f22ac5f81210a3a909edc368c
2024-08-04 12:09:08 +00:00
Tagir Valeev
eafd66854b [java-stubs] TypeInfo: fix annotation parsing for multi-parameter generic types (IDEA-356112)
GitOrigin-RevId: 154294caab47747e81b80de26ca1bffd919fce98
2024-08-02 14:18:00 +00:00
Bas Leijdekkers
c72b96d481 Java: enable Pratt parser by default (IDEA-305898)
GitOrigin-RevId: 597cfc30aeff88a7791e9e185b5c08426844d4da
2024-08-01 12:35:28 +00:00
Mikhail Pyltsin
8e4ac5ef4b IJ-CR-140943 [java-inspections] IDEA-356672 Support JEP 477. Incorrect intentions and actions with implicit imports
- added javadocs
- rework checking modules

GitOrigin-RevId: 57d41cc28ce57ef7dd59c578217482b75a0a3d11
2024-08-01 12:29:33 +00:00
Aleksey Dobrynin
44e14f0283 [java, highlighting, import-module] Check access module names for Module Import Declarations DEA-356710
GitOrigin-RevId: 819c182488bd0b4aeffb8518373da35aabf311ca
2024-07-31 17:00:00 +00:00
Bas Leijdekkers
a35a9f91ba Java: improve error highlighting for unknown annotation method
GitOrigin-RevId: 6fdb6e2f397280cf4795cbd09ddcc1461a5897ff
2024-07-30 22:37:25 +00:00
Tagir Valeev
79b2382bf4 [java-psi] Support type annotations when parsing the lightAST (IDEA-356112)
GitOrigin-RevId: 0b1f29ad6b31b2b9e8d3f90db0e6431263cd3905
2024-07-30 16:34:11 +00:00
Mikhail Pyltsin
374345b1a9 IJ-CR-140943 [java-inspections] IDEA-356672 Support JEP 477. Incorrect intentions and actions with implicit imports
- use module scope
- fix formatting problem
- skip nested classes during checking conflicts for module imports

GitOrigin-RevId: 4fc7987c4d9e3c3f6cbda37181b4a7c808ee18c1
2024-07-26 18:23:16 +00:00
Mikhail Pyltsin
7b0eaea1e9 [java-inspection] IDEA-356474 Support JEP 477: support implicitly imported modules in optimize imports
GitOrigin-RevId: d4fb59ccffbf0a51f97b1ba965f2d0d59834940e
2024-07-26 12:44:48 +00:00
Yann Cébron
2b2e1284f6 [java] CoreJavaDirectoryService: mute inspection (IDEA-356815)
GitOrigin-RevId: 49c4da7f27d705008e9d2120c7c05317af989a19
2024-07-25 14:41:14 +00:00
Mikhail Pyltsin
8f3e75e7db [java-inspections] IDEA-356672 Support JEP 477. Incorrect intentions and actions with implicit imports
- improve ImplicitImportChecker to support modules
- check conflict for modules
- new method `PsiImportModuleStatement.findImportedPackage` is added

GitOrigin-RevId: 0d0f61916bdda17b8c9d9146a13aa8d6d0876bb1
2024-07-25 09:33:07 +00:00
Aleksey Dobrynin
e927f5ac3e [java, highlighting, import-module] Support Feature level check for Module Import Declarations IDEA-355536
GitOrigin-RevId: 36dcbb509e788a3243f93a52c83cd24ae0dd6985
2024-07-23 16:19:59 +00:00
Mikhail Pyltsin
605a95ac5b IJ-CR-140269 [java] M IDEA-355777 Support implicit imports
- rework caches

GitOrigin-RevId: ff25dc49ab394bacd84af5565a3bfd4b120dd08e
2024-07-22 21:10:32 +00:00
Bas Leijdekkers
7f47f19875 Java: support for JEP 382: Flexible constructor bodies (IDEA-355054)
GitOrigin-RevId: f6146f9e06b0f618f1512b7b864532e126d7beda
2024-07-19 20:23:55 +00:00
Bas Leijdekkers
5b1dbe4383 Java: fix and improve error message (IDEA-356573)
GitOrigin-RevId: 0b3ff17ed8d439ff99ce1e2294a6fac2dcb83770
2024-07-19 20:23:55 +00:00