Aleksey Dobrynin
3d708aa8d7
[java, completion] generate a provider method while using jigsaw services IDEA-347698
...
GitOrigin-RevId: 146fa445dcb5426eba5d8fa1d4e1a61d892cee18
2024-02-29 10:42:41 +00:00
Georgii Ustinov
46122d741b
[Java. Logging] Add tests for logger with non-default name
...
IDEA-347382
GitOrigin-RevId: a870693c49182ebc9dc86478c158b9de7f980e87
2024-02-27 10:35:42 +00:00
Bas Leijdekkers
8c84138f29
[java] fix strange completion when trying to create vararg parameter (IDEA-346732)
...
GitOrigin-RevId: 7ba3612b1df542111163d635ae1fdd0ad8877fce
2024-02-22 18:38:34 +00:00
Georgii Ustinov
4e05f3a24a
[Java. Logging] Detect logger availability for Field based loggers more precisely
...
IDEA-345098
GitOrigin-RevId: c6d27cb77582974061d768c2fec7837ef9178d70
2024-02-19 14:25:18 +00:00
Georgii Ustinov
0eae1f68c1
[Java. Logging] Add tests for field based logger
...
IDEA-345098
GitOrigin-RevId: 5176d6bb359fc804b857951225cc0a3f2afecfa6
2024-02-16 10:21:56 +00:00
Tagir Valeev
f598e81a95
[java] JavaFeature.ASSERTIONS: fix message
...
GitOrigin-RevId: da0d1c46b9b85eeed5b3ef8d717901de3f150cd3
2024-02-15 17:28:31 +00:00
Piotr Tomiak
a028674bdb
IDEA-346213 QuickDoc: improve wrapping of long qualified names and URLs
...
GitOrigin-RevId: c808dd4c333636dc9dc36e01b3afa57f3037ec0c
2024-02-15 15:20:55 +00:00
Mikhail Pyltsin
8813548cbb
[java-highlighting] IJ-CR-125397 IDEA-344235 support calls with checked exceptions for instanceOf patterns
...
- reimplement, changing only mayCompleteNormallyVisitor
GitOrigin-RevId: 67be02c535ec3d5df7a9ec9cd77395305db27e14
2024-02-13 21:45:04 +00:00
Mikhail Pyltsin
aa94146c31
Revert "[java-highlighting] IDEA-344235 support calls with checked exceptions for instanceOf patterns"
...
This reverts commit 15d80e2f3028bd59c1ec9a73a7a3af4c1c5f1027.
GitOrigin-RevId: a770a8ce645fa6a578d5a923098d39456d7fd379
2024-02-13 21:44:54 +00:00
Mikhail Pyltsin
c42e445e44
[java-highlighting] IDEA-338688 Change variable type intention produces compile error
...
- skip if a return type is changed
GitOrigin-RevId: aa6f5d52ba3a50a6c1d571f10dea99e8ce876831
2024-02-13 21:44:44 +00:00
Piotr Tomiak
753100fb20
IDEA-345694 Rework margins and font-size for quick documentation popup
...
GitOrigin-RevId: 5bad86f21662ab785f4d8c62c538280a407a0352
2024-02-13 00:16:16 +00:00
Tagir Valeev
d0cf7b359a
[java] IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns
...
GitOrigin-RevId: 8d646035979e3ec0a7de3c6f58a4e6ec9967bdbd
2024-02-12 19:12:36 +00:00
Tagir Valeev
c56dbec5f8
[java] Replace CreateMissingDeconstructionRecordClassBranchesFix20Test and ReplaceCaseDefaultWithDefault20FixTest with stubs
...
Cannot remove the tests yet, as their removal triggers re-bucketing on CI, which results in unrelated test failures
IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns (in progress)
GitOrigin-RevId: e84e4cb7f26ecc45f81bb0b04904540a9e3cac0d
2024-02-12 19:12:33 +00:00
Bas Leijdekkers
0cae65939b
Java: improve incompatible types reporting
...
- only report type with "anonymous" prefix when the left side is anonymous
- use short names in the tool tip when fq names would be identical as well
- use error color for the entire type name, including the anonymous prefix
GitOrigin-RevId: f1555687adb0ab9e7c5850719165a7a508ecf181
2024-02-11 16:31:14 +00:00
Mikhail Pyltsin
cf8999446b
[java-generating] IDEA-345603 Generate -> override methods doesn't work with implicit classes
...
- allow to invoke everywhere in implicit classes
- don't create {}
- don't allow constructors
GitOrigin-RevId: 8f0b17b498035ffd1c20b26543de0a2d21eabf87
2024-02-09 14:45:39 +00:00
Alexander.Glukhov
2a752d605e
revert: "[ui][IDEA-334229] quick doc popup redesign"
...
496c8d97
GitOrigin-RevId: d32086158d641347b96d61e7cec3de70f0a4e94b
2024-02-09 11:35:36 +00:00
Georgii Ustinov
baf6a46750
[Java. Logging] Add tests for anonymous and implicitly declared classes + review refactor
...
IDEA-331693
GitOrigin-RevId: 2ca3503bfbf7d37602ad698f071292a8773c6e29
2024-02-07 13:30:04 +00:00
Georgii Ustinov
a9ac56fa4b
[Java. Logging] Add basic tests
...
IDEA-331693
GitOrigin-RevId: 7e3418984b59f18411ce3be472637f5d0e8daa39
2024-02-07 13:30:04 +00:00
Georgii Ustinov
8b69044fc2
[Java. Logging] Add simple test for logging generation
...
IDEA-331693
GitOrigin-RevId: 8e936cff7eacea1332ee0862e8f40cb5dad5ed35
2024-02-07 13:30:03 +00:00
Tagir Valeev
3f4201aae8
[java-intentions] Disable 'initialize variable fix' for record component
...
Fixes EA-893719 - UOE: SyntheticElement.findSameElementInCopy
GitOrigin-RevId: 6e5d54c1b32f2c7cb0621bba1b4a6ef02de4b8f8
2024-02-06 21:35:03 +00:00
Mikhail Pyltsin
b4dd504e01
[java-highlighting] IDEA-341846 Code with instanceof for a local class inside a generic function is marked as red
...
- skip methods to capture parameters
GitOrigin-RevId: df0c152d33bb9f880dad2428b7635d06209b3e0c
2024-02-05 19:44:16 +00:00
Mikhail Pyltsin
4948c8af8c
[java-highlighting] IDEA-344235 support calls with checked exceptions for instanceOf patterns
...
GitOrigin-RevId: 15d80e2f3028bd59c1ec9a73a7a3af4c1c5f1027
2024-02-05 19:22:52 +00:00
Alexander.Glukhov
91410ec1ed
[ui][IDEA-334229] quick doc popup redesign
...
GitOrigin-RevId: 496c8d97d22f97bcfbf65770348315694259b1ea
2024-02-05 13:23:02 +00:00
Tagir Valeev
5bd02b55c3
[java-intentions] AddVariableInitializerFix: suggest more suitable initial values instead of null for some types
...
Fixes IDEA-344453 Intellij should not try to initialize an Optional var with null
GitOrigin-RevId: 8097988bf1335a282138e8d09e350c3a5f65204d
2024-02-02 19:17:55 +00:00
Tagir Valeev
48cb7b5154
[java] Implement Join lines action for text block
...
Support ending \, insert \n otherwise (to preserve semantics)
IDEA-337178 Join lines: support terminating \ in text blocks
GitOrigin-RevId: 2acb64443b83a27f29a969360b2cbbe34f7ea7d4
2024-02-02 19:17:49 +00:00
Aleksey Dobrynin
4be08d597b
[java, completion] Support completions for jigsaw modules for classes outside of current module dependencies. IDEA-341664
...
GitOrigin-RevId: a8d08f94e3f34188e8c6ee29ab26c1fc9c376d49
2024-02-02 15:18:52 +00:00
Aleksey Dobrynin
0d8b737e97
[java, kotlin, quickfix] Add dependency in a single step while using Jigsaw modules. IDEA-341660
...
GitOrigin-RevId: 7c0ad3a4079ca76c1f1afb4147498e0ae08cc449
2024-01-30 14:29:06 +00:00
Piotr Tomiak
ce20662ac7
IDEA-344340 Java: highlight syntax within <blockquote><pre> blocks
...
GitOrigin-RevId: 20bc54418acabc94060098c9750e950636ddac4d
2024-01-29 21:45:11 +00:00
Tagir Valeev
b3f30c73f1
[javadoc] Snippets: exclude \n from whole-line highlightings; include content before // @end to the region
...
Fixes IDEA-343473 Quick documentation does not render {@snippet} correctly
GitOrigin-RevId: 3eca79b107b248d6c9ed79b1fdec3e083424c124
2024-01-26 22:02:19 +00:00
Tagir Valeev
1813854fea
[java] Improve support for multi-shred injections with guarded blocks in ModCommands
...
IDEA-333006 Language injection in String templates
GitOrigin-RevId: 6b6bec62bd709cd0419139d8a78925ee3d59e249
2024-01-25 19:15:30 +00:00
Mikhail Pyltsin
82abbe2dbb
IJ-CR-119726 [java-highlighting] S IDEA-306108 Assignment to a variable with non-denotable type: confusing error message
...
- fix for quickfix
- refactoring
GitOrigin-RevId: aedc118f2dd67bf56391792e7cd3042a8f7f33a8
2024-01-25 16:31:41 +00:00
Bas Leijdekkers
a18169660e
Java: fix CCE when converting interface to class and there is a comment between the interface keyword and identifier
...
GitOrigin-RevId: fd2ee4537423961785fdb2bee2e0a46411c6a91e
2024-01-23 18:14:05 +00:00
Piotr Tomiak
e5d0af56d6
IDEA-342771 Java: Update test files
...
GitOrigin-RevId: f155798661da6fd97f3cabe3dab1972e6caf9026
2024-01-23 13:10:07 +00:00
Bas Leijdekkers
45d3f80e5e
[java-inspections] UseHashCodeMethodInspection: support reporting and replacing with Double.hashCode() when temp var is reused
...
GitOrigin-RevId: 8b6169bd90214b30d3d83acf7ebe49bc20b4f29d
2024-01-22 19:24:31 +00:00
Tagir Valeev
3aa4b08dac
[java-completion] One more test-case for IDEA-339251
...
GitOrigin-RevId: 0e02d7d09d91d41c4ae44efa3c544f7e590fc4c3
2024-01-19 11:20:33 +00:00
Tagir Valeev
2387145bcc
[java-completion] Fix and enable GuessManagerImpl for castvar
...
Improves IDEA-339251 IDEA: make Postfix templates dumb aware
GitOrigin-RevId: c5e2a09d06a3cf7b2adf747ee8671c143d228b91
2024-01-19 11:20:30 +00:00
Bart van Helvert
dc11424f70
[kotlin] Run import optimizer when no usages are found
...
Fixes the issue in Kotlin, Java and Groovy. #KTIJ-28288 Fixed
GitOrigin-RevId: 7cd5942539a10f9ccdba386396f15546b0a9ac00
2024-01-17 13:18:01 +00:00
Mikhail Pyltsin
50c45d12e9
[java-generation] IDEA-343144 Generate -> Constructor leads to exception for implicitly declared classes
...
- skip implicit classes
GitOrigin-RevId: 67f9920c45099046a934db75945c6d4ec7ce5150
2024-01-16 14:03:30 +00:00
Mikhail Pyltsin
4085dad9bb
[java-inspections] IDEA-343139 StaticAccessViaInstanceForImplicitClasses produces errors for implicitly declared classes
...
- allow such access
GitOrigin-RevId: 2deafb0f6fb0be420a33174ccc2265103a0ce183
2024-01-16 14:03:15 +00:00
Mikhail Pyltsin
8b76574052
[java-actions] IDEA-343025 "Move initializer to constructor" shouldn't be available for implicitly declared class
...
- disable for ImplicitClass
GitOrigin-RevId: 1cd67fd89726eb19ccedb5227715a7d95c2c7c50
2024-01-15 22:12:12 +00:00
Tagir Valeev
3fad9d4a33
[java-inspections] UseHashCodeMethodInspection: check for side-effects (IDEA-338114)
...
GitOrigin-RevId: cf54ae1e7c99e0ddff88bf8a6bf951b36f8b89b7
2024-01-15 16:29:07 +00:00
Tagir Valeev
fc3e5df389
[java-completion] IDEA-339251 IDEA: make Postfix templates dumb aware
...
GitOrigin-RevId: 082102197a4a06457685b5d6cd94e7296e51d8db
2024-01-12 18:46:51 +00:00
Bas Leijdekkers
f60a136213
Revert Java: allow Create field from Usage on records (to create static field, IDEA-337138) (IJ-CR-122437)
...
GitOrigin-RevId: afaf9642a626d99d65f989ca6bbd4713b85c7704
2024-01-10 19:31:02 +00:00
Bas Leijdekkers
04ee289bc9
Java: "insert ';'" quick fix for local variables and fields (IDEA-330590)
...
and skip JavaErrorQuickFixProvider for non-Java elements
GitOrigin-RevId: 2fb2b6321c1a087d53bf52509f1513859ac4faf8
2024-01-10 16:09:01 +00:00
Bas Leijdekkers
3e0ed000da
Java: sensibly parse non-sealed modifier on local class and provide better error message (IDEA-342500)
...
GitOrigin-RevId: 574a5d9c31e5823127227622adaefaaea224b247
2024-01-10 16:08:52 +00:00
Bas Leijdekkers
ab928055bb
Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)
...
GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
2024-01-08 17:34:42 +00:00
Alexandr Suhinin
386f5e9ad2
IDEA-335907 [highlighting] highlight unresolved annotations
...
GitOrigin-RevId: f23313adc278a5c84363cc938c1a25b9d2270ddf
2024-01-08 12:53:05 +00:00
Bas Leijdekkers
551728bdca
Java: report local class accessed from another switch branch (IDEA-113520)
...
GitOrigin-RevId: 7a467fc0cda90dc1944185e83607d8a7d2579cf4
2024-01-07 11:21:02 +00:00
Bas Leijdekkers
e7ee84d0ca
Java: correctly check if class is inner class according to the JLS (IDEA-336426)
...
and clarify error message
GitOrigin-RevId: 4614ced685521a06fee1bb681001e1484f9dca7d
2024-01-05 11:51:41 +00:00
Mikhail Pyltsin
e7ff016f3e
[java-inspections] IDEA-341640 Mark main(String[] args) parameter as unused with implicit classes
...
- return back support `premain`
GitOrigin-RevId: 71ed562fa9e0f514852cb3aff0e993452371aa44
2024-01-05 09:34:47 +00:00