Tagir Valeev
7ddc26cb54
[java-intentions] IDEA-370071 Convert Java 'Optimize imports' action to ModCommand
...
GitOrigin-RevId: 5d6b55225f3b87f9a2b10599c6a6a3deeec3200f
2025-04-01 17:27:14 +00:00
Max Medvedev
c4d2a83d30
IDEA-359853 introduce JavaBinaryOperations
...
GitOrigin-RevId: 8c4cd1a8fb76a7c79bce882a669af0a057045ab0
2025-04-01 00:38:44 +00:00
Max Medvedev
63a8290a30
IDEA-359853 convert Java lexers to Kotlin
...
GitOrigin-RevId: d19dea17585aa0e2ced7f6f9dd35a34cae95608c
2025-04-01 00:38:44 +00:00
Tagir Valeev
288801be45
[java-intentions] AddAnnotationModCommandAction as a replacement for AddAnnotationFix and AddAnnotationPsiFix
...
Used in many places; also AnnotateIntentionAction and AnnotateCapitalizationIntention converted
Part of IDEA-369745
GitOrigin-RevId: 224155324475db2e36a82f79ec64186f0acee676
2025-03-31 11:33:30 +00:00
Tagir Valeev
2097cef2ba
[java-inspections] Remove AddAnnotationFixWithoutArgFix
...
Nobody uses @Subst annotations anyway
GitOrigin-RevId: 02ec4aa0478e92b3d8d9aef601ce7f07c87a954f
2025-03-31 11:33:30 +00:00
Tagir Valeev
cdf90a5184
[java-intentions] ExternalAnnotationsManagerImpl: allow removing some annotations while adding
...
Part of IDEA-369745 Convert various add annotation actions to ModCommand
GitOrigin-RevId: 892614c094bd66856b0ed46c876be524d26b9344
2025-03-31 11:33:30 +00:00
Bas Leijdekkers
433f80c8e1
Java: cleanup
...
GitOrigin-RevId: bb9b112db07ad1132ecf498cc9469fd2f4161b95
2025-03-31 09:59:31 +00:00
Bas Leijdekkers
7b229f220a
Java: fix broken check for null literal
...
GitOrigin-RevId: 12bfeea5c75f842447561394d03aa7475c7cddca
2025-03-31 09:59:31 +00:00
Bas Leijdekkers
b3b2bd8a2a
Java: cleanup
...
GitOrigin-RevId: 6acbd3d76e132b68154b190029e86774ae924264
2025-03-31 09:59:31 +00:00
Bas Leijdekkers
725904ad50
Java: cleanup
...
GitOrigin-RevId: 7b334714ddd5b41e3fe0486c173799e92fdd05a2
2025-03-31 09:59:31 +00:00
Bartek Pacia
0a7a753aa9
[java-inspections] DeprecationInspection: remove redundant suppression
...
GitOrigin-RevId: 74cff5a10184e0bf8ad8443ca739df080cbd7149
2025-03-27 21:27:07 +00:00
Tagir Valeev
f78504b4df
[java-intentions] Rewrite AddAnnotationFixTest.testListenerNotifiedWhenOperationsFail -> testNoRootRegisteredPreviously
...
As listeners were dropped, current test doesn't test anything particular. And we removed the branch when chooser was forcefully cancelled in test mode, so now it fails on linux. Instead, let's have another test that ensures the successful registration of root
Also: ModCommandAwareExternalAnnotationsManager.getInstance
GitOrigin-RevId: 3d3deae8ae67030260f745ba8ba691241aaf1d11
2025-03-26 18:21:28 +00:00
Tagir Valeev
98de135081
[mod-commands] Fully ModCommand-based add external annotation; MakeAnnotationExternal converted
...
IDEA-369600 finished
GitOrigin-RevId: 55faecc97fb46194a6f76a17a6b8c337bf1e9ef1
2025-03-26 18:21:27 +00:00
Tagir Valeev
2fb27de94c
[java] ExternalAnnotationsManager: use OptPane to render file chooser
...
Part of IDEA-369600 Convert MakeAnnotationExternal to ModCommand
GitOrigin-RevId: 342596b443c2679aa93ae6c8e992cd4f876baa9c
2025-03-26 18:21:27 +00:00
Tagir Valeev
33c5f09ca5
[opt-pane] OptionContainer now provides getOptionsPane method, so one can render option pane having OptionContainer only
...
GitOrigin-RevId: 1dd797c24d2e4699d4fea456bffc9e23ae291f9f
2025-03-26 18:21:27 +00:00
Bas Leijdekkers
c99d692949
Java: care about inspection settings for record members (IDEA-365236)
...
in "Declaration access can be weaker" inspection
GitOrigin-RevId: b964ce31ccb56eb6497532bb48053fc3b639d505
2025-03-25 19:47:36 +00:00
Max Medvedev
20e9f57067
IJPL-339 update todos so that links to YT start working
...
GitOrigin-RevId: 1bff37af59958d7abb77e416d2137ec59c4dd75b
2025-03-25 19:43:32 +00:00
Tagir Valeev
abb78bdc85
[java-intentions] IJPL-181667 ModCommand API: create ModMoveFile command to move and rename files
...
GitOrigin-RevId: 3b03f5bdff2c79416676b372048979ad8d5a4454
2025-03-21 21:07:40 +00:00
Tagir Valeev
e875d3c9e2
[java-intentions] ExtendsListFix -> ModCommand
...
GitOrigin-RevId: aa56f632c1fff1b02db2f778201f9169c5fda7b1
2025-03-21 21:07:40 +00:00
Bas Leijdekkers
932672f8c5
Java: introduce PsiDocToken.isDocToken() utility method
...
GitOrigin-RevId: 885df2430d8f8cf18e599c6614f59762168e4a61
2025-03-20 18:24:49 +00:00
Bas Leijdekkers
50dab90ce1
Java: cleanup
...
GitOrigin-RevId: 96b94c1cfa7a346cf035ce63feb9f0a9621ab5ef
2025-03-20 18:24:49 +00:00
Tagir Valeev
1b0fcea7e2
[java-intentions] IDEA-368928 Unnecessary cast fix for lambdas
...
GitOrigin-RevId: dec2f6e7bedca3686532264db331371119146527
2025-03-20 11:41:31 +00:00
Bartek Pacia
0dd611db0e
[java-inspections] update ClassCanBeRecord to support local classes
...
#IDEA-251701 fixed
Merge-request: IJ-MR-157668
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: ccac85cceade6f42c4b1024d268785bbde8d42b3
2025-03-20 10:38:14 +00:00
Tagir Valeev
b6806f1e7b
[java-highlighting] IDEA-369375 A syntax error (PsiErrorElement) should suppress the surrounding error
...
Also: allow a custom highlighter to supersede the default one
GitOrigin-RevId: c7d7a8be3ef762c9516ed3b637d467d4b544af00
2025-03-20 10:06:39 +00:00
Tagir Valeev
af361ef042
[java-highlighting] HighlightVisitorImpl: cosmetic
...
GitOrigin-RevId: f50b0174ef7a04efead6a5336d30b76f470af755
2025-03-18 14:53:44 +00:00
Tagir Valeev
634d4d3053
[java-dfa] In case of failed join dump supertypes into exception
...
Diagnostics for IDEA-369213 AE: DfGenericObjectType.join
GitOrigin-RevId: b924c1a19cb139e514eedabe838c671b9347328a
2025-03-17 16:12:20 +00:00
Bas Leijdekkers
ae006b8ff4
Java: cleanup
...
GitOrigin-RevId: 45654603d89476e57cc2fb9b157ba805547db9f2
2025-03-13 10:50:04 +00:00
Bartek Pacia
aa7fc8a045
[java-inspections] add tests for PointlessArithmeticExpression with the only setting disabled
...
related to #IDEA-364437
Merge-request: IJ-MR-157222
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 698fadfc7b3672394e4e3078b4322effe77aa49d
2025-03-10 20:36:51 +00:00
Bart van Helvert
9db9f51520
[java] Expose JavaMethodContractUtil#createAttributesText
...
Also adds documentation. #IDEA-367681
GitOrigin-RevId: fa180e9bf3f4710bfae4a5f0dab7b7f10d3db4fd
2025-03-07 01:59:08 +00:00
Bart van Helvert
b6c08c7ab8
[java] Remove deprecation of Jetbrains contract FQN
...
#IDEA-366120
GitOrigin-RevId: b01f0abcffd15515cf4426c981b5a18ebde38d4f
2025-03-07 01:59:08 +00:00
Bas Leijdekkers
c1cbbc96f1
Java: make suppress intention insert annotation in scratches and injections (IDEA-368668)
...
GitOrigin-RevId: 5a336e0ffaab8b530458dba3bba689e6eea70ace
2025-03-06 10:26:37 +00:00
Tagir Valeev
8620b4d854
[java-highlighting] Move JavaPlatformModuleSystem to codeserver.core and deprecate/merge with JavaModuleGraphHelper
...
We don't need both service and EP to support modules; one thing would be enough. JavaModuleSystem is still used from Kotlin compiler, so should be kept for a while.
GitOrigin-RevId: d55622468eea50cd60c99ada794b6c855dcc0079
2025-03-03 18:30:06 +00:00
Tagir Valeev
9169d77071
[java-highlighting] Include syntax errors into JavaErrorKinds
...
Still need to handle them sometimes separately, as they should be displayed in DefaultHighlightVisitor, but other clients (not IJ frontend) should process them uniformly as other kinds of errors
Part of IDEA-365344
GitOrigin-RevId: 6f08d0c78bf2b3a481fa454ca5f1cadc99ab70cd
2025-03-03 16:24:04 +00:00
Tagir Valeev
d7e4c31308
[java-highlighting] New highlighter is not experimental anymore; better description
...
GitOrigin-RevId: 8b9699cf8aed138c2ef7e00bff87e50a546046a7
2025-03-03 13:02:23 +00:00
Tagir Valeev
84bb3d850a
[java] Simplify HighlightVisitorImpl
...
GitOrigin-RevId: 29467c7bac0bff7b1ec7f6eb8787e95ab395b921
2025-03-03 13:02:22 +00:00
Tagir Valeev
ce8c8c0503
[java-highlighting] HighlightFixUtil: remove unnecessary null checks
...
GitOrigin-RevId: 5a2e3cf89c06cca535821512c363b3bfd3b64d5a
2025-03-03 12:11:00 +00:00
Tagir Valeev
85c83b0ecc
[java-highlighting] IDEA-368383 Create a new extension point to register error highlighting fixes
...
GitOrigin-RevId: 4a7f83a1c75c9b772bb68de6cc46346f68177a42
2025-03-03 12:11:00 +00:00
Tagir Valeev
6e973fdbe0
[java-highlighting] HighlightFixUtil: move sink to the first place for every method
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: de9726ed7bc805900c7206fc6496ceeadf50bb59
2025-03-03 12:11:00 +00:00
Tagir Valeev
89dda01eeb
[java-highlighting] Exhaustiveness checks migrated (the last error from HighlightVisitorImpl!)
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: c45b258fc18e267122946be7d3aebfd9dc77387f
2025-03-03 12:11:00 +00:00
Tagir Valeev
1e74ac0725
[java-highlighting] shouldAddDefault moved from SwitchBlockHighlightingModel to DeleteSwitchLabelFix
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 23717aeb658e6a29cff944651d1304c813d99ae9
2025-03-03 12:11:00 +00:00
Tagir Valeev
96b87e85a5
[java-highlighting] fix-related code moved to HighlightFixUtil
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: fcb88cf8e0bb3aa976d675f28863a4ec292c5df5
2025-02-28 17:16:32 +00:00
Tagir Valeev
0f412df4d0
[java-highlighting] evaluateSwitchCompleteness moved to SwitchUtils
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 6a71dfcf7c7166dea51e424d57c75998b68cb7c9
2025-02-28 17:16:32 +00:00
Tagir Valeev
a1d51b1179
[java-highlighting] hasExhaustivenessError moved to JavaPatternExhaustivenessUtil
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 0190cf700e9e38b473982c73e2f2d88fdb696870
2025-02-28 17:16:32 +00:00
Tagir Valeev
7ce31efa0b
[java-highlighting] Extract JavaPatternExhaustivenessUtil to compute exhaustiveness information
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 2f02174a6eaa696caa51fed1d4fa1bd953751759
2025-02-28 17:16:32 +00:00
Tagir Valeev
1c9ddb1cfb
[java-highlighting] SwitchBlockHighlightingModel as an utility class
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 8dd3d3806023b7c12e6a323b768f001ef5e1eb9c
2025-02-27 19:55:56 +00:00
Tagir Valeev
174ffe0cac
[java-highlighting] getSwitchBranches moved from SwitchUtils to JavaPsiSwitchUtil
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 9e356b8522c0bb5a8112d5c30913a4aa3d9cf45d
2025-02-27 19:55:56 +00:00
Tagir Valeev
6d6d8d5725
[java-highlighting] Minor SwitchBlockHighlightingModel refactoring
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 552c724e1fc19ea41d2ec330d9784a2b7a7aee4f
2025-02-27 19:55:56 +00:00
Tagir Valeev
6b436c4751
[java-highlighting] Merge SwitchBlockHighlightingModel and PatternsInSwitchBlockHighlightingModel
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: d2790b6b087afdb9fbbd113fcfe390066c166e67
2025-02-27 16:13:32 +00:00
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
b3b3fcf587
[java-highlighting] Use JavaPsiSwitchUtil.isBooleanSwitchWithTrueAndFalse
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: bde4078ac2d09977730c7803a3565c9bbe683a06
2025-02-27 16:13:31 +00:00