Commit Graph
7584 Commits
Author SHA1 Message Date
Mathiasandintellij-monorepo-bot 629d0a2fff IDEA-380337 javadoc: Fix broken rendered jdoc
This commit also fixes broken links in nested classes

(cherry picked from commit 44443df5abd7646168124452ad25679e6570166d)

# Conflicts:
#	community/java/java-tests/testData/codeInsight/javadocIG/markdownReferenceLink.html

GitOrigin-RevId: d1423dba7bdac8426ec7eae286abea3a45e18bb9
2025-12-01 13:11:05 +00:00
Aleksey Dobryninandintellij-monorepo-bot 547ccf8e3e [java, quickfix, jigsaw] IDEA-380666 add circular dependency handling for Jigsaw module completion
(cherry picked from commit 0beb868ac32c4cabae9392a9c34cb66086935a02)


(cherry picked from commit 5a7924c57cb9afd068e60aed6eea4d3b151cf8de)

IJ-MR-182986

GitOrigin-RevId: 201885016bf87fce8b6a98413c63d47de5023539
2025-11-21 11:43:10 +00:00
Morgan Bartholomewandintellij-monorepo-bot a453fede94 [python] PY-35730 use NonAsciiCharactersInspection to report non-ascii characters in python regular expressions
(cherry picked from commit d80469c6b698863b8986a7c9486fb7e69c418fcf)

GitOrigin-RevId: 2400ea51b7b3b3d72011195ca336e4cf69d17931
2025-11-12 10:47:17 +00:00
Bas Leijdekkersandintellij-monorepo-bot df4a9c949d Java: fix Find Usages for Flexible Constructor Bodies super/this calls (IDEA-381039)
(cherry picked from commit e5710feac14035bd2a0193fa84a00f11c8bf8987)

IJ-CR-179855

GitOrigin-RevId: 3efc6055c3807d0db30a0b1fbb08663470bbccca
2025-10-31 21:08:38 +00:00
Marcin Mikosikandintellij-monorepo-bot e14522817c [java] IDEA-377910 Add AnnotateAsNullMarkedFix
#IDEA-377910 Fixed

Merge-request: IJ-MR-177841
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

(cherry picked from commit fef51fbed5f227086d864dfc6483298585a78d8f)

IJ-CR-179837

GitOrigin-RevId: 8c43501fabba014db05c3a4930bcaeb69c865597
2025-10-27 10:10:00 +00:00
Tagir Valeevandintellij-monorepo-bot 3a2c9be754 [java-psi] PsiMethodCallExpressionImpl: on ambiguous call use upper bound of types if possible
GitOrigin-RevId: 7de48b2542e2fe0a0f8503ab3dd3c4d34784747c
2025-10-10 07:53:21 +00:00
Marcin Mikosikandintellij-monorepo-bot bc62ddef92 [java] IDEA-256275 Improve Remove-redundant-argument-to-call quick-fix so it can handle redundant arguments not only at the end of argument list
#IDEA-256275 Fixed

Merge-request: IJ-MR-177887
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: 156ea485dd409ef5ec937da1872f97ede359bdff
2025-10-09 13:12:30 +00:00
Tagir Valeevandintellij-monorepo-bot f28a563574 [java-highlighting] A test for IDEA-378878
GitOrigin-RevId: fb9e6307a27bf27e894c221f193f3a56e37797dd
2025-10-08 16:21:30 +00:00
Bas Leijdekkersandintellij-monorepo-bot 38729705c8 Java: don't report uninitialized fields when constructor has incorrect name (IDEA-380080)
GitOrigin-RevId: c83193e8b72f9730e1102220f7a12c35e2722223
2025-10-07 18:33:11 +00:00
Bas Leijdekkersandintellij-monorepo-bot cd8ada5c65 Java: add synthetic default constructor on resolve (IDEA-376799)
GitOrigin-RevId: 71d783efd5095b0995ac1788863c8a50de759f77
2025-10-07 18:33:10 +00:00
Mikhail Pyltsinandintellij-monorepo-bot 48b384354e [java-highlighting] IDEA-378781 Quick fixes for typos in keywords
- more cases

GitOrigin-RevId: 56f497789cb02e5c867053056458bbfdc20d3ac5
2025-09-30 16:20:30 +00:00
Bas Leijdekkersandintellij-monorepo-bot 86210e4506 Java: avoid exception and broken code in compact source file (IDEA-379938)
GitOrigin-RevId: b0846f84f6830ce49bcf0ab5974e864c8d41f75b
2025-09-26 16:09:45 +00:00
Bas Leijdekkersandintellij-monorepo-bot 8ed7abee22 Java: better quick-fix text
GitOrigin-RevId: 9b0e0ccd116171e515eef1e7c7f07d1c4cb07854
2025-09-26 16:09:45 +00:00
Bas Leijdekkersandintellij-monorepo-bot 4a28c011bd Java: nicer quick-fix text
GitOrigin-RevId: c454f730670badff1df440b76adbd45de34c273a
2025-09-25 18:47:50 +00:00
Bas Leijdekkersandintellij-monorepo-bot 3903ba0e39 Java: don't offer "add parameter to method" fix for record accessor (IDEA-379797)
GitOrigin-RevId: 4d7111d369625f7344050f36ead362f37e819852
2025-09-25 18:47:50 +00:00
Bas Leijdekkersandintellij-monorepo-bot 455e32759f Java: nicer quick-fix text
GitOrigin-RevId: 1194b033814fac3bdf672e8d3a4d7ccefc4dc35a
2025-09-25 18:47:50 +00:00
Mikhail Pyltsinandintellij-monorepo-bot a99d6a79da [java-highlighting] IDEA-378781 Quick fixes for typos in keywords
- more cases
- move primitive types to PsiTypes.java

GitOrigin-RevId: 3a94f2e8fe84e9e2cb95d84bc7ebb13f77579916
2025-09-24 17:40:19 +00:00
Mikhail Pyltsinandintellij-monorepo-bot 1dc66aa0e3 [java-generation] IDEA-372740 ConcurrentMap implementation must override putIfAbsent, but that method is not in the Override Methods screen, nor Implement Methods
GitOrigin-RevId: d37733578b8cc097b034f1c729abcdbb12c7015c
2025-09-23 14:56:40 +00:00
Tagir Valeevandintellij-monorepo-bot b9e6544c21 [java-highlighting] IDEA-378301 False compilation error on var initialization
GitOrigin-RevId: 09b681b763347bcfcadca137d3e0c57cbe39f33a
2025-09-22 16:06:01 +00:00
Mikhail Pyltsinandintellij-monorepo-bot eebb6c4bb2 [java-highlighting] IDEA-378781 Quick fixes for typos in keywords
GitOrigin-RevId: 3984441825712d7f566461eaea10748d5b78f024
2025-09-22 14:16:34 +00:00
Tagir Valeevandintellij-monorepo-bot fbd13ff64c [java-psi] IDEA-377644 PsiImmediateClassType, PsiArrayType: reset nullability when annotations changed
Also: do not merge annotations during the substitution (unnecessary anymore after nullability is implemented and causes problems)
Some tests that rely on annotation merging during the substitution are removed/updated. The behavior was inconsistent anyway.

GitOrigin-RevId: c13e68616507bbb10cbe0384d122334879e166df
2025-09-18 15:04:14 +00:00
Bas Leijdekkersandintellij-monorepo-bot cd646dcdef Java: add JavaColorProvider performance test (IDEA-375485)
GitOrigin-RevId: e7be60981f8a7f6c5ce3b89396a2c908a92f52b0
2025-09-18 13:06:51 +00:00
Louis Vignierandintellij-monorepo-bot 115c73bc1e [javadoc] Highlight unresolved fragment references
IJ-MR-174748
#IDEA-376337

GitOrigin-RevId: 4352c370375c968392ea81cdcfab262ebd7fa5ab
2025-09-17 19:25:19 +00:00
Louis Vignierandintellij-monorepo-bot c6ac8622b9 [javadoc] Fix rendered fragment references
#IDEA-379155 Fixed

GitOrigin-RevId: ce8a74e26ad1f221ff90719090bb34599f4751c0
2025-09-17 19:25:18 +00:00
Louis Vignierandintellij-monorepo-bot c4c3151607 [javadoc] Update JavadocDeclarationInspection for fragment references
#IDEA-379008 Fixed

GitOrigin-RevId: bc90a975bae732a505d9bae1550f4fa475ea0ec7
2025-09-17 19:25:18 +00:00
Louis Vignierandintellij-monorepo-bot f421f79436 [javadoc] Add completion for fragment references
#IDEA-376337

GitOrigin-RevId: 887853966d3bea20f27f3d9f70d1c045176dc538
2025-09-17 19:25:18 +00:00
Tagir Valeevandintellij-monorepo-bot 2d07719498 [java-inspections] IDEA-379168 follow-up
1. Quotes around type in action name
2. Highlight only variable type+name but not initializer

GitOrigin-RevId: 6e473eb983a5226ac3fb4fb07e573c5d395cea11
2025-09-16 14:41:19 +00:00
Tagir Valeevandintellij-monorepo-bot 009a6284e9 [java] IDEA-372145 follow-up: use SequencedMap; wording
GitOrigin-RevId: 8b2e9886481740602ddf3f6fecf92ca180bd7412
2025-09-11 18:13:46 +00:00
Tagir Valeevandintellij-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
Vladimir Krivosheevandintellij-monorepo-bot 1fff991fab update jsoup to 1.21.2 in project configuration files
GitOrigin-RevId: aa63e1cb06db2d5a5d04d931cff5d07ac013c07d
2025-09-11 13:28:00 +00:00
Georgii Ustinovandintellij-monorepo-bot e499be1443 [Java. Code completion] IDEA-379113 refactoring: make all test files start with the lower letter
GitOrigin-RevId: 7863d60c6181ee90fd8c5819e3e907890581fddf
2025-09-11 10:30:39 +00:00
Georgii Ustinovandintellij-monorepo-bot e1d95fede4 [Java. Code completion] IDEA-379113 Disable log completion after dot
GitOrigin-RevId: 922c5e2684f53b2969d5bcc19b2c8d68cc901a66
2025-09-11 10:30:39 +00:00
Marcin Mikosikandintellij-monorepo-bot c4272dc602 [java] IDEA-216276 Add ShowDuplicateElementsFix that shows popup with a list of element duplicates and use it for duplicate-method error
#IDEA-216276 Fixed
Merge-request: IJ-MR-171237
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: 5aab229888a361d3d4f653708b7f42d832c44645
2025-09-11 08:47:24 +00:00
Mikhail Pyltsinandintellij-monorepo-bot c2d7c558ee [java-highlighting] IDEA-378880 False compilation error in a compact source file
- disable correction by scope for classes inside compact source files

GitOrigin-RevId: 44831301a6c14f60d26ae4715df18c4cd24e1ee8
2025-09-09 12:11:34 +00:00
Mikhail Pyltsinandintellij-monorepo-bot ccc6c0ee82 [java] IDEA-378236 Double-clicking the closing bracket line of a switch block doesn’t select the entire block inside the brackets
- exclude braces from selection

GitOrigin-RevId: 1a0d1d6a237e9069b60321668c2ef9f570a82464
2025-09-04 12:37:14 +00:00
Mikhail Pyltsinandintellij-monorepo-bot ab51e442f6 [java-inspections] IDEA-378586 Impossible to compute constant for '\''
GitOrigin-RevId: ba58288dab3e558c1a1fe4529e8abe4ef26482fa
2025-09-02 18:14:43 +00:00
Marcin Mikosikandintellij-monorepo-bot 6c51e2f6f9 [java] IDEA-283208 Fix bugs in Lift-throw-out-of-switch
- code-block should not be added when lifting throw out of switch makes throw statement the only one inside 'then' clause
- code-block should be added when lifting throw out of switch which is nested inside multiple variable declaration which is nested as the only statement of 'then' clause that does not have braces

Merge-request: IJ-MR-173629
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: 5644e3dfee807c22eae75d3536fbb9af5ece5eca
2025-09-02 12:39:42 +00:00
Bas Leijdekkersandintellij-monorepo-bot 97de4512b7 Java: report more "variable might have been assigned to" problems
GitOrigin-RevId: 030936b065bb00b504a69bc08ad39ae8a28cad6f
2025-08-25 17:43:01 +00:00
Marcin Mikosikandintellij-monorepo-bot 9fd6ada970 [java] IDEA-283208 Add quickfix: Lift 'throw' out of 'switch' expression
Adds a quick-fix: "Lift 'throw' out of 'switch' expression" that that is provided for error "'switch' expression does not have any result expressions".
Some rare cases are not handled (fix is not provided for mentioned error).
For example when switch is used inside:
 - initialization/condition/update part of for loop
 - initializer of class field
 - condition of do-while loop
 - lock expression in synchronized statement
 - any part of assert statement
 - resource initializer of 'try' statement

#IDEA-283208 Fixed
Merge-request: IJ-MR-172146
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: a2710c49e16b7f495974fb167bcae01b3d850f7b
2025-08-21 09:10:24 +00:00
Marcin Mikosikandintellij-monorepo-bot dc005115cd [java] IDEA-376793 Fix 'Duplicate class' error check to highlight each duplicate class exactly once
Merge-request: IJ-MR-171426
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: 882e7e6b7ee66083be0376bbc84b23bd60903977
2025-08-19 09:20:45 +00:00
Nikolay Chashnikovandintellij-monorepo-bot 6ff53a44d7 [java] tests: migrate NullityInferrerTest to use modern annotations with 'TYPE_USE' target
We won't need to have the 'jetbrains-annotations-java5' library in the monorepo after migrating all modules to Java 8 (IJPL-160046). Also, it makes sense to test the behavior for the modern variant of the annotations anyway.

IJ-MR-172675

GitOrigin-RevId: c263316db155756cb07c6d439d9f575dfdb096a6
2025-08-18 17:31:55 +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
Marcin Mikosikandintellij-monorepo-bot 787051b0be [java] IDEA-216276 Provide fix for "method is already defined in"
For each "method is already defined in" error, a quick fix is added with "Navigate to duplicate method" text. In case of many duplicates, quick fix navigates to the topmost one.

Merge-request: IJ-MR-170181
Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com>

GitOrigin-RevId: d609be3a3e4526bed37471f814d2e675cbd0d2a6
2025-07-31 11:45:47 +00:00
Mikhail Pyltsinandintellij-monorepo-bot 22b7af6762 [java-highlighting] IDEA-267379 "Non-canonical record constructor must delegate to another constructor" fix could be provided
GitOrigin-RevId: f27d1c6ae299debfaab0504921cf96487c9b62ab
2025-07-30 11:08:29 +00:00
Bas Leijdekkersandintellij-monorepo-bot 71fe705739 Java: remove confusing comment from test data
GitOrigin-RevId: 685076d9de3042e0e8ad8e3386637232637a9c51
2025-07-25 09:09:02 +00:00
Bartek Paciaandintellij-monorepo-bot a07259351d [java-intentions] IDEA-376348 Fix false positive resulting in generation of red code
GitOrigin-RevId: 83bf865badb4dc8cde4c715ac6d457247acdc171
2025-07-25 06:39:30 +00:00
Tagir Valeevandintellij-monorepo-bot f30a2eaae2 [java-intentions] Do not suggest to create field for lvalues in annotations
Fixes IDEA-376118 Create field from usage fails for a very broken code

GitOrigin-RevId: 111701ff693f00d1ba32213d7a28802678a00969
2025-07-18 16:54:39 +00:00
Tagir Valeevandintellij-monorepo-bot ac013e30b2 [java] Make default annotations context-dependent
Default annotation is now defined from PSI context using an ordered list of nullable or notnull annotations. The first available annotation is selected.
For Spring Boot 3, default annotation is org.springframework.lang.NonNull/Nullable
For Spring Boot 4, default annotation is org.jspecify.annotations.NonNull/Nullable
Legacy settings with an unordered annotation list are converted to make them ordered
Non-context-specific default annotations are still used as a default for external and inferred annotation; also it's a fallback option in contexts where no annotation is available at all
ChangeNullableDefaultsFix is removed, as now it's unlikely to produce the desired result (and probably was not useful before as well)
Fixes IDEA-372145 Support for third-party nullability providers

GitOrigin-RevId: 31794eb024ba310ca35d4b3df33420d0bb344898
2025-07-17 15:56:29 +00:00
Bas Leijdekkersandintellij-monorepo-bot 03fe273fb4 Java: fix error message when assignment before chained constructor call (IDEA-375281)
GitOrigin-RevId: 49c4a8ce04845726d1c35aa114612bf5410e1a37
2025-07-15 18:39:09 +00:00
Bas Leijdekkersandintellij-monorepo-bot 6f36a457d7 Java: detect method call before supertype constructor called in anonymous class argument list (IDEA-375801)
GitOrigin-RevId: 0066baefa439fe1eccf838ffb863c0a0753260d4
2025-07-15 18:39:09 +00:00