Mathias Boulay
b7d5b6900c
feat(javadoc-handler): basic typing assistance
...
GitOrigin-RevId: 500c7ede653a91d1ea67c85efc2248657c35ccab
2024-09-17 16:28:17 +00:00
Mathias Boulay
68242cd5b9
fix(javadoc-gen): @code tag rendering full line
...
Turns out there was another edge case that the ones from the Youtrack issues.
GitOrigin-RevId: 6bccd3d0aa4fc121059558b847ba90731d9c8962
2024-09-17 16:28:17 +00:00
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
Mikhail Pyltsin
f7b4abaa1f
IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- move settings to JavaRefactoringSettings
- rename to GetterSetterGenerationOptions
GitOrigin-RevId: 09c8d01ba66f3d88583cb609ee8317bf90c222c8
2024-09-16 17:10:39 +00:00
Egor.Skrypnikov
a9f21f9116
[Rider] Fix item unwrapping in test
...
GitOrigin-RevId: e008b41e83f7acb89fdf6e2bb2d3004422e20422
2024-09-16 12:34:33 +00:00
Tagir Valeev
037c7339b0
Make DocCommentPolicy non-generic; type parameter is not very useful here
...
GitOrigin-RevId: e5c1e431e67c1aeb24a237172aaee85b37433cd3
2024-09-16 11:23:15 +00:00
Tagir Valeev
05de6a6bdb
Less raw types
...
GitOrigin-RevId: 2a6e712b4017cf1ead7870543e562acb654fbeaf
2024-09-16 11:23:15 +00:00
Bas Leijdekkers
c6974e1116
Java: better way to fix highlighting usages of record components (IDEA-318178, IDEA-316341)
...
GitOrigin-RevId: ece57c928d31d3d7c5a7c6c2a0e69184f5927e5e
2024-09-15 18:12:26 +00:00
Yuriy Artamonov
47f1c44a90
[java] IJPL-158521 Actions: fix ellipsis in messages for Java actions
...
GitOrigin-RevId: bfce0d6efa8747660c4b9af3d8defbfa47e4509a
2024-09-15 14:50:09 +00:00
Bas Leijdekkers
2f32c69d13
Java: find record component usages in the right file (IDEA-318178, IDEA-316341)
...
GitOrigin-RevId: 8078a16b2e128a2f638e40a6fe11a488e667dddf
2024-09-14 15:22:40 +00:00
Georgii Ustinov
f7ff124bf1
[Java. Logging] Improve completion for logger
...
IDEA-359199
GitOrigin-RevId: a3162b75c3fa4ed32b3b17bcbf0753cf01fe72db
2024-09-14 14:51:59 +00:00
Bas Leijdekkers
5c06f74975
Java: don't report non-private field as assigned not accessed when it is implicitly read and written (IDEA-357404)
...
GitOrigin-RevId: 943ef6961c19510e5d4291367293424a87499487
2024-09-13 16:40:26 +00:00
Maxim.Kolmakov
c6d31a553c
Remove @HardwareAgentRequired annotation
...
All Perf Unit tests are run on the hardware agents to ensure stability of the metrics.
So the annotation is not needed anymore and it doesn't work on JUnit5 tests so the same test is run twice and since test execution time depends on the bucketing, metrics are jumping.
GitOrigin-RevId: fc83a368447d09d6ad1b269c88fe4f6c79067a91
2024-09-13 15:28:16 +00:00
Tagir Valeev
6a4df21065
[java-tests] SmartPsiElementPointersTest: eliminate raw types
...
GitOrigin-RevId: b074947d4b54d8982603ee9b1ede7ca4db51ab5b
2024-09-13 11:01:30 +00:00
Aleksey Dobrynin
f590114d83
[java, highlighting] Fix module conflict highlighting for exported packages IDEA-352819
...
GitOrigin-RevId: d4479fb863280674ae8960c930e6e8b1628b7321
2024-09-13 06:24:34 +00:00
Mikhail Pyltsin
1f476ec640
IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- rework settings
GitOrigin-RevId: fc914bfed1b8046eccf2e76054c39f4c2ad7359c
2024-09-12 19:42:01 +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
c22a9186f9
[java-inspections] Support simple chaining in NotNullFieldNotInitializedInspection
...
Fixes IDEA-145194 Do not report 'Not-null fields must be initialized' when field is initialized indirectly
GitOrigin-RevId: c3bae51deaedbbbb4d035e5d7d3b55f2ca9b8c03
2024-09-11 20:52:54 +00:00
Mathias Boulay
055ce7ad56
Fix(JavaDoc): fix markdown construct being unaffected inside legacy docs
...
GitOrigin-RevId: 25beb0f37329a1b98a511144558c291b5c284398
2024-09-09 18:26:13 +00:00
Tagir Valeev
ad5122e632
[java-completion] Use var when preferred
...
Fixes IDEA-212766 Java Postfix completions should use Java 10 var keyword if possible (for, fori, cast, ...)
GitOrigin-RevId: 58813cb4f7ecfbaf6da5fd51237a7e778313fff2
2024-09-09 17:41:44 +00:00
Mikhail Pyltsin
d72eba89a1
[java-completion] IDEA-357258 Java 23: .switch postfix completion is not supported for primitive data types
...
GitOrigin-RevId: ae848584ee81611bde2e1201c79923c2e170f6e6
2024-09-09 15:21:29 +00:00
Mikhail Pyltsin
8980aa2c1f
IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- add new option
GitOrigin-RevId: b893b09e8e157cbcc4cba78cda4d61e973f1f4e5
2024-09-09 15:21:29 +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
Roman Shevchenko
4269e27cb3
[platform] rewriting CopyTBXReferenceAction to use a URL object instead of string concatenation (IJPL-149928)
...
GitOrigin-RevId: 15a5a2c6e401228d51f083f3de656b3d392b740a
2024-09-09 12:11:51 +00:00
Lev Leontev
4478324e2a
IDEA-358871 honor exclusion in CoreJavaDirectoryService#getPsiClasses
...
GitOrigin-RevId: 19fa5bfadef763431bcf025773127cb58f01f850
2024-09-06 19:39:11 +00:00
Mikhail Pyltsin
6f4d6c3fc7
IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- more tests for annotations with arguments
GitOrigin-RevId: e2a6ce55af9899df4c6fbf9101989c00b8ba2723
2024-09-06 15:36:44 +00:00
Bas Leijdekkers
c47a581888
Java: merge two tests
...
GitOrigin-RevId: 3811faf0c478ae7e9e2c7ff40da645ef41312d09
2024-09-06 13:43:06 +00:00
Bas Leijdekkers
d009fb0ae7
Java: remove unnecessary calls to setTemplateTesting() from test (IJ-CR-143669)
...
GitOrigin-RevId: 4e7a40baa1c5b2c4caa1213ae5fefb8d745a85aa
2024-09-06 13:43:06 +00:00
Bas Leijdekkers
7e0038ce14
Java: "Open in editor" checkbox for Replace constructor with builder (IDEA-358746)
...
GitOrigin-RevId: 72f2bf32432a2b623ab562cefac5568904fb5cee
2024-09-06 13:43:06 +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
Mikhail Pyltsin
fa49b1270e
IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- tests for annotations with arguments
GitOrigin-RevId: f03c82ee31fdfc2731f19e3f55bc4dfbdeffa566
2024-09-06 11:17:08 +00:00
Alexey Kudravtsev
a0ddc4085d
remove/update changed highlights in one pass to fix IJPL-161572 LSP-based code highlighting is slow in files without PSI
...
GitOrigin-RevId: f3db04c83e181c01366b563652d73473924a494f
2024-09-05 21:30:41 +00:00
Mikhail Pyltsin
ae365f891c
[java-inspection] IDEA-358668 Red code after "Replace 'if' with 'switch' statement" with Enum's
...
- support enums in patterns
GitOrigin-RevId: b00182c5f77bda03552fb9750e960f74c75582a5
2024-09-05 16:13:13 +00:00
Bas Leijdekkers
028d526405
Java: fix false positive when using java 21 pattern matching (IDEA-357175)
...
in "'equals()' should check the class of its parameter" inspection
GitOrigin-RevId: f84071ea339bf690eadcba60d491eebe4cb21a7e
2024-09-05 15:02:58 +00:00
Bas Leijdekkers
2870f49e0a
Java: disallow making builder class from the constructor class itself (IDEA-254858)
...
GitOrigin-RevId: 071a0fd3c45f2b28b73b811e0d844a0f1b911372
2024-09-05 15:02:58 +00:00
Mikhail Pyltsin
47768dd4dd
[java] IDEA-358751 Java Annotations copied to generated getter / setter
...
- don't copy annotations except nullable
GitOrigin-RevId: 0592a3e224a8cb0614b496f8f6e6ddd6e2315239
2024-09-05 14:08:34 +00:00
Mikhail Pyltsin
7a9b0a636a
[java] IDEA-358431 Support MessageFormat specifier-to-argument navigation, similar to String.format
...
- fix place for formatted index (without style)
GitOrigin-RevId: aa82d7312bab57ce7b2dc736456574746da5fd9d
2024-09-05 12:57:16 +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
7e2050cf72
[java-inspections] MagicConstantInspection: test to ensure that parameters and fields do not propagate automatically
...
GitOrigin-RevId: 7053c2c950894e6694353e90d77cb1f2ff772fb3
2024-09-04 12:07:39 +00:00
Alexey Kudravtsev
c83ce9390f
tests: cleanup
...
GitOrigin-RevId: 4c0abf48343a2ad6c4ebfea78c20d66cd981c02b
2024-09-04 12:03:32 +00:00
Tagir Valeev
6c29e44d6b
[java-inspections] Track references in 'extends'; fix getMinimalAccessLevel for default constructor
...
Fixes IDEA-357158 "Replace constructor with factory method" makes code uncompilable
GitOrigin-RevId: dfe3341d2cb0ea975aa6a40d045bf8419ff39e5f
2024-09-04 11:31:52 +00:00
Alexey Kudravtsev
7040e8e2ae
fix testThrowingExceptionFromInspectionMustPropagateUpToTheLogger():
...
- sometimes an exception could be wrapped in TestAssertionError by Logger - expect both
- avoid data race when thread 1 does "progress.cancel(); save exception" and the other thread does "progress.checkCanceled(); catch (PCE) { get saved exception }"
- unify saved exception storage in the DPI
GitOrigin-RevId: cc960addac3c9eb71522fc6c63edf8248c90ca71
2024-09-03 17:45:46 +00:00
Aleksey Dobrynin
f4f245c45a
[java-property-tests] Add coroutine timeout, validate empty methods, and update calculation methods.
...
GitOrigin-RevId: 8134ec4be5fbb565a0f184c5250fc7831b89c477
2024-09-03 16:28:46 +00:00
Tagir Valeev
b01ac55564
[java-refactoring] Inline variable on non-initialized declaration
...
Could be available if there's only one write visible for all the reads
Fixes IDEA-354157 Inline variable not working when staying on uninitialized declaration
GitOrigin-RevId: e257b2b493a3902e901699efa4eac90f62e3108b
2024-09-02 21:01:25 +00:00
Tagir Valeev
84ce93ddc5
[java-dfa] Test for IDEA-357456
...
GitOrigin-RevId: b7b97300c5a4512009b006cdfafeba56bcfe4c69
2024-09-02 21:01:25 +00:00
Tagir Valeev
49f0880f57
[java] IDEA-358431 Support MessageFormat specifier-to-argument navigation, similar to String.format
...
GitOrigin-RevId: 5bfb87b48e714f92f5c469d4110426ff76f8c14b
2024-09-02 21:01:25 +00:00
Mikhail Pyltsin
dd822c1bc7
IJ-CR-142710 [java-inspections] IDEA-357725 LoggerInitializedWithForeignClassInspection should skip when the logger is not the final field
...
- fix texts
GitOrigin-RevId: 85d86f362ce860118d2a047321bf4916e01757da
2024-09-02 18:36:41 +00:00
Alexey Kudravtsev
b96b50d09c
fix test: do not call super.visit() because it set the "info must be removed" too soon
...
GitOrigin-RevId: ee5bf56bb2a68353aae153a3ea7d94c2e9fdf3ff
2024-09-02 17:00:27 +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