Commit Graph
62 Commits
Author SHA1 Message Date
Tagir Valeev fc6de8a515 [java-highlighting] Migrate checkRedundantDefaultBranch
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 8bf45e8e4e26a2766c9755a90dfba6d6cc94e198
2025-02-27 16:13:31 +00:00
Tagir Valeev 30c5bb9996 [java-highlighting] Remove more unused messages from JavaErrorBundle.properties
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 158354577fc61a14ed229194c6376b96adefabb0
2025-02-26 18:59:35 +00:00
Tagir Valeev 8d91285266 [java-highlighting] Restore properties used in third-party plugin
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: c3b899fbe86d2dc1669e1f4023a6329e4e67a288
2025-02-26 18:59:35 +00:00
Tagir Valeev 899650b62d [aspectj] AjHighlightInfoFilter rewritten using JavaErrorFilter
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 652343beb54e76b901647a3f8a71c2d7ffd32f9d
2025-02-21 10:54:11 +00:00
Tagir Valeev 5bb9466a6c [lombok] JavaErrorFilter introduced; used in LombokHighlightErrorFilter instead of error message matching
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b8c77c60384f35386cbd38b1a642ca850a98bec9
2025-02-21 10:35:05 +00:00
Tagir Valeev 96bc4480b1 [java-highlighting] Unrelated defaults checks moved to MethodChecker
GenericsHighlightUtil.java is removed completely
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: de2bddb49469c21efe1088e86f6a1ec5b9d35b4a
2025-02-21 10:35:05 +00:00
Tagir Valeev 5014925e91 [java-highlighting] Refactor unrelated default method analysis; extract JavaPsiMethodUtil
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 1e7f4feab6cbaa3d38960a3c0e45aa5dd2def61a
2025-02-21 10:35:05 +00:00
Tagir Valeev 6e94122e08 [java-highlighting] JavaErrorBundle.properties: unused properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: e8c2dc58c97593aa6b44849464bfc0c4c00526bc
2025-02-20 11:34:14 +00:00
Tagir Valeev 42ce63523e [java-highlighting] checkModuleReference migrated to ModuleChecker and JavaModuleDefinitionInspection
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b801fdbe22df163a4f0db153016ae50671ccc866
2025-02-19 20:42:37 +00:00
Tagir Valeev cb626d5749 [java-highlighting] checkSwitchSelectorType migrated
Error messages unified; do not list allowed switch types anymore
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 69675af87ac8866fb5ba1475094b93af07aa1ad5
2025-02-18 09:36:18 +00:00
Tagir Valeev e6691d9ea8 [java-highlighting] SwitchBlockHighlightingModel.checkSwitchBlockStatements migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 463b1549d45bf98586e6ae9dafb4bc4b330bbe52
2025-02-18 09:36:18 +00:00
Tagir Valeev a0f777069b [java-highlighting] move module-related warnings to JavaModuleDefinitionInspection
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 66179a41da5e02b759f07f9d6638b87711181348
2025-02-17 12:04:21 +00:00
Tagir Valeev 2350d69472 [java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
2025-02-14 12:45:24 +00:00
Tagir Valeev 4408629488 [java-highlighting] JavaErrorBundle.properties: unused properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 45cca1bddd32665c8db684aa6457d5b7dc594829
2025-02-14 12:45:24 +00:00
Tagir Valeev 61f7252105 [java-highlighting] same erasure problems migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 052d3bf8a26c376c7dfc5b1e370e583cf6236138
2025-02-12 20:34:11 +00:00
Tagir Valeev 3cc5f493dd [java-highlighting] JavaErrorBundle.properties: unused properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 426a4ad67359142cfc19259cc81e734b1b0e4031
2025-02-11 15:54:30 +00:00
Tagir Valeev 24109ba397 [java-highlighting] remove unused code
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 75fe65ba5b62f9ba11c3f47a644f9533d86dd82a
2025-02-06 10:35:32 +00:00
Tagir Valeev caef43a5e5 [java-highlighting] Incompatible lambda parameter types moved
Also: report every incompatible parameter, not only the first one
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: a9d75a78207d0910f0bcbb6060e38acedc3f07d3
2025-02-04 19:21:50 +00:00
Tagir Valeev e985705e03 [java-highlighting] JavaErrorBundle.properties: migrated properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 0f50893e525ea81ed43e90503f4ab7514cb11979
2025-01-31 15:31:12 +00:00
Tagir Valeev de680b834f [java-highlighting] JavaErrorBundle.properties: migrated properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 8de87670a2c88828e0114cfc9966d1a5d2b254a2
2025-01-31 15:31:12 +00:00
Tagir Valeev be747e6461 [java-highlighting] variable errors migrated; some improvements in incompatible type fixes
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b8531f50c89b009e852e1fdcc9efce1c29dcf4e1
2025-01-29 11:35:29 +00:00
Tagir Valeev a157ee801e [java-highlighting] type-related errors, lvti-related errors, TypeChecker introduced
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 126dfbfe5a1046072d520e9a8f57261ff7add384
2025-01-29 11:35:29 +00:00
Tagir Valeev 9dbf2ace73 [java-inspections] UnreachableCatchInspection extracted from highlighter
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b2e389aa89d75c63969a3884a495b3771d2712b2
2025-01-27 18:53:10 +00:00
Tagir Valeev 7f391af965 [java-highlighting] Finish checkMethodCall migration
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 68d3ae802d6340854838c680979aba531a778488
2025-01-22 12:50:33 +00:00
Mikhail Pyltsin c28f1d89cc [java-highlighting] IDEA-365996 Constructor in an implicitly declared class is not highlighted as error
GitOrigin-RevId: 2de45c452608cea2ab314511060ac733259a8c18
2025-01-22 10:29:22 +00:00
Tagir Valeev d46f522700 [java-highlighting] Unused properties removed
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 441fc6adec85f6aaa7b4d4bbb944b5aeab7dcb8d
2025-01-20 16:39:03 +00:00
Tagir Valeev aea97243cf [java-highlighting] More generics stuff and switch stuff migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 70990f955de96df8d98ee3097ca01d9b4f529d4b
2025-01-17 16:02:19 +00:00
Tagir Valeev 19b4123fe6 [java-highlighting] Remove unused properties
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 7bed460c32e4b8dfcd07e37e4ef13c1692655acd
2025-01-15 19:19:41 +00:00
Tagir Valeev 9450c1bf37 [java-highlighting] More class-related stuff and implicit class stuff -> ClassChecker
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: aa4e9711952175cbd0677b50d7486efaa19113fc
2025-01-13 09:44:55 +00:00
Bas Leijdekkers 8e8c2b726d Java: match javac from jdk 24 in error highlighting for Flexible Constructor Bodies - JEP 492 (IDEA-364189)
GitOrigin-RevId: 686bd65963483f93acd22ae8956681f889105409
2025-01-11 17:53:23 +00:00
Bas Leijdekkers 67f8acad93 Java: fix error message (IDEA-364189)
GitOrigin-RevId: 6ddc29ca9af9523ac8597bc00b920b872a4250b6
2025-01-11 17:53:23 +00:00
Tagir Valeev bca4f75501 [java-highlighting] checkMustNotBeLocal, checkClassAndPackageConflict, checkPublicClassInRightFile, checkWellFormedRecord, checkSealedClassInheritors, checkSealedSuper -> ClassChecker
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 96d04cbf95d1c92486090997d527b05f929169db
2025-01-09 18:51:18 +00:00
Tagir Valeev 388f3deac0 [java-highlighting] checkClassMustBeAbstract, checkDuplicateNestedClass, checkCyclicInheritance -> ClassChecker
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: ac39c3d4a1198d9ea32c27fc9d3dfe6eee4ed251
2025-01-09 18:51:18 +00:00
Tagir Valeev d016a592c8 [java-highlighting] Finish moving annotation-related errors
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 21317f34d9e16b4169c56ad957c90fb07d943355
2025-01-09 12:30:34 +00:00
Tagir Valeev f036b08d09 [java-highlighting] Remove unused code and properties
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 801074fccdff129683089fa96c2f4a0d01f07bf3
2025-01-09 12:30:34 +00:00
Tagir Valeev e1eb2882a6 [java-highlighting] JavaErrorBundle.properties: remove unused properties
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: e1d515c4bb55f1b9147ae6e031487b804edb3106
2025-01-08 16:42:47 +00:00
Tagir Valeev d57fac1920 [java] Message fixed
GitOrigin-RevId: 0d4835cfe430c37dafca828ba825a9afc95a103d
2025-01-03 19:17:43 +00:00
Bas Leijdekkers 24557b8338 Java: fix inappropriate quick-fix for bodyless methods in record (IDEA-299166)
fixes error message as well

GitOrigin-RevId: 2b9d54fa48b282dc003753645237ebfdb50c0d01
2024-12-29 13:41:59 +00:00
Bas Leijdekkers 2b32d9bb56 Java: basic support for Valhalla Value Classes (IDEA-364548)
GitOrigin-RevId: 93b0394866aae35772ccc90e7de822af8a94c6ce
2024-12-18 18:05:29 +00:00
Bas Leijdekkers ed768499e2 Java: don't report error on qualified reference if the type of the qualifier is unknown (IDEA-240047)
GitOrigin-RevId: c5c197eca630832e9f96d1cbee1a1ed545e0212f
2024-11-11 20:27:58 +00:00
Bas Leijdekkers a016f884d3 Java: add error for class extending sealed class from another package (IDEA-358672)
GitOrigin-RevId: d7b0c68100ddc60f42bfedc1f3b88e54cbd3ce74
2024-10-29 01:52:20 +00:00
Mikhail Pyltsin a55780f84d [java-highlighting] IDEA-345960 fix unnecessary java error messages
- there are doubles with JavaPsiBundle but all of that are suppressed due to external usages

GitOrigin-RevId: 656f3187c12d8d19025b58c43afa25293b4975e6
2024-10-07 11:42:34 +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
Bas Leijdekkers 891e3e3702 Java: restore property used in external plugin
GitOrigin-RevId: 7a36d4aa3299a65f22ac5f81210a3a909edc368c
2024-08-04 12:09:08 +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
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
Bas Leijdekkers 291bb89726 Java:Highlight "Recursive constructor invocation" error on the constructor call (IDEA-356563)
GitOrigin-RevId: ec04cb0aa5b234ea9814d78400c83fa70e6bd29b
2024-07-19 20:23:55 +00:00
Bas Leijdekkers 3b9377a54b Java: better error message on duplicate reference in extends/implements list (IDEA-354856)
GitOrigin-RevId: 0ba4eed5966c273f94552d7fe623a69bb6eb6c95
2024-06-14 13:20:40 +00:00