Mikhail Pyltsin
b1f90d405a
[java-inspection] EA-941439 incorrect behavior for Java8MapApiInspection when a map is reused
...
GitOrigin-RevId: 0ac91b181c4dc245fa839ee3ccb2b0ba501c90bd
2023-12-18 20:57:23 +00:00
Andrey Cherkasov
6e95446bec
[java] The 'Make class final' quick-fix must check final methods
...
...and remove their 'final' modifier. Since final classes cannot be inherited, marking a method as final is unnecessary and confusing.
^IDEA-309065
GitOrigin-RevId: de044d57c690772aefc7044d87159c42ebc92907
2023-12-18 20:25:02 +00:00
Bart van Helvert
e78df2a5a6
[java] Use getParameterForArgument in AnnotationContext#getParameter
...
Removes some duplicate code.
GitOrigin-RevId: 9a02da06ce8692bc586eed393bfa66a21b9c0789
2023-12-15 19:57:02 +00:00
Bart van Helvert
d0ecc297e2
[java] Remove VirtualManifestProvider extension
...
There can only ever be a single implementation of this extension, making it useless. #IDEA-341080 Fixed
GitOrigin-RevId: 9fe43256ee9e28a8e50d9cddf13b0cfb18b328db
2023-12-15 19:56:59 +00:00
Tagir Valeev
fcd18947fa
[mod-commands] Mark API as non-experimental (except several specific methods/classes)
...
Also: rename moveTo -> moveCaretTo
GitOrigin-RevId: 831c19425697bc0729a8f6f324fc13fdcff2507c
2023-12-15 14:38:54 +00:00
Bas Leijdekkers
68880a5c91
Java: add explanation comment (IJ-CR-122378)
...
GitOrigin-RevId: 24e0be4499d3a8c54663235b17f32b35cbf87c98
2023-12-15 12:27:59 +00:00
Bas Leijdekkers
d0adc5895a
Java: fix good code is red super() call problem 3 (IDEA-340994)
...
"Cannot reference class before supertype constructor has been called"
GitOrigin-RevId: 70471c3f1a58c5c57ab229e24d39baa1794b8e72
2023-12-15 12:27:55 +00:00
Bas Leijdekkers
6b8d6303b4
Java: fix good code is red super() call problem 2 (IDEA-340994)
...
"Cannot reference class before supertype constructor has been called"
GitOrigin-RevId: 510ee2de490dce949a0926303de39e69c998e6e3
2023-12-15 12:27:51 +00:00
Bas Leijdekkers
0b42cca24f
Java: fix good code is red super() call problem 1 (IDEA-340994)
...
"Cannot reference method before supertype constructor has been called"
GitOrigin-RevId: c65ab2d636671ec192dbdbec67c0afd494224fd9
2023-12-15 12:27:47 +00:00
Mikhail Pyltsin
58e3af039d
[java-highlighting] IDEA-340604 Improve an error message for unresolved references for implicit classes
...
GitOrigin-RevId: a4f319c4e48053ec57bce1e171f61d665154ed55
2023-12-14 19:49:24 +00:00
Bas Leijdekkers
88bd39ef0d
Java: remove spurious error highlighting (IDEA-340885)
...
GitOrigin-RevId: 955d86aca0ceb262cee8f3ae5744856108eeb412
2023-12-14 16:13:39 +00:00
Bas Leijdekkers
9b4e551e2d
Java: use Map.of() instead of manual HashMap construction (IJ-CR-122233)
...
GitOrigin-RevId: 66529e8e7164a2279370536e4a02856023890608
2023-12-14 16:13:35 +00:00
Tagir Valeev
f7074186ea
[java-inspections] PreviewFeatureInspection: add features from Java 20-22
...
Fixes IDEA-340983 Preview API (structured concurrency) usage in Java 21 is not highlighted
GitOrigin-RevId: cd02d5e1fe328104a47ac1fd684b2e2324b6558d
2023-12-14 15:51:27 +00:00
Tagir Valeev
3614b742bb
final method in final class warning fixed
...
GitOrigin-RevId: eeec0047e89c8bcd9768022405964716ac0bb75e
2023-12-14 12:11:00 +00:00
Andrey Cherkasov
019a6852f4
[java] Make extension classes final
...
GitOrigin-RevId: 1aae04982598568a111e8c78b9a71c9d2b4aa150
2023-12-13 20:02:09 +00:00
Michail Plushnikov
ef83d61041
[lombok] IDEA-255688 Review: Reuse existing functionality
...
GitOrigin-RevId: 114ba00723fdfaab33cd89f711239e71ec4cd116
2023-12-13 19:03:02 +00:00
Tagir Valeev
290ba5faf1
[java-dfa] IDEA-340683 False positive "Constant values" for Stream expression with nested Optional chain
...
GitOrigin-RevId: 3b800f05140c016f0864d176bb7d1a0394855ea1
2023-12-13 15:22:28 +00:00
Bas Leijdekkers
463df28ff9
Java: fix bad code is green issue (IDEA-340583)
...
"cannot reference this before supertype constructor has been called"
GitOrigin-RevId: a3ad20e76d749a97b51a1c4d962d491029b6a7b2
2023-12-13 12:14:18 +00:00
Bas Leijdekkers
aa34f18547
Java: don't count non-physical methods (IDEA-292477)
...
in "Class with too many methods" inspection
GitOrigin-RevId: 360b1469fd056822d88056bdba2058808f721b9c
2023-12-13 12:14:15 +00:00
Aleksey Dobrynin
f1bd0d54d2
[java, highlighting] update utility class IJ-CR-121658
...
GitOrigin-RevId: d87df85b58fe4eae5f5c80fa7a3625d856d53dc9
2023-12-13 11:31:40 +00:00
Aleksey Dobrynin
131bfc4609
[java] add default static imports
...
GitOrigin-RevId: 746402d1272aa0a410abbbfb18bd8571f545029c
2023-12-13 11:31:37 +00:00
Michail Plushnikov
6f95b21eeb
[lombok] IDEA-255688 Get rid of LombokHighlightFixHook-Filter
...
GitOrigin-RevId: d050c269d3fcedcdcc21429e83604688c50b6b60
2023-12-12 02:04:14 +00:00
Michail Plushnikov
03da569fcd
[lombok] IDEA-333062 IDEA-255688 replaced isPhysical by SynteticElement check
...
GitOrigin-RevId: 4c5cdab364e926778332982e38c2933811016a35
2023-12-12 02:04:07 +00:00
Mikhail Pyltsin
9f280818c9
[java-highlighting] IDEA-340048 Incorrect reference highlighting in implicitly declared classes
...
GitOrigin-RevId: ab40db645c83da5c715b4b09ef58c873a7dccfd3
2023-12-11 21:05:52 +00:00
Tagir Valeev
542593d7dd
[java-dfa] Optimize getPossibleTargetIndices and isLinear
...
GitOrigin-RevId: 96d89e1c669490daffd5b3627689bb22f0e5e0ca
2023-12-11 15:57:38 +00:00
Mikhail Pyltsin
3f86cf9292
[java-highlighting] IDEA-339935 JEP 463
...
- rename unnamed classes to implicitly declared classes
GitOrigin-RevId: 2c6d7f16a1dc6d2371b8f8b5f5675246c9bc99f9
2023-12-11 15:49:28 +00:00
Bas Leijdekkers
afc37f0353
Java: only consider actual getter methods (IDEA-177115)
...
in "Field not used in 'toString()' method" inspection
GitOrigin-RevId: bbbe615310a2ee01985be0eb0b4f59f4e968e404
2023-12-11 15:43:30 +00:00
Bas Leijdekkers
fb29b4a8f5
Java: remove some unused properties
...
GitOrigin-RevId: 5596e0f45c7e187ca2888a2b19c016b8fe74ae35
2023-12-11 15:43:15 +00:00
Michail Plushnikov
61fe7a68b6
[lombok] IDEA-333062 IDEA-255688 Added support for underscored (_) syntethic onX-Methods of lombok onX-Annotations
...
Reduced usages of custom HighlightErrorFilter
GitOrigin-RevId: 7aa66eb9ecb9cc2e534015893d4701ab37d32f1c
2023-12-10 20:10:01 +00:00
Tagir Valeev
2a4fc312fb
[java] IDEA-327241 Enable compilation and running Java projects with configured unsupported preview versions
...
GitOrigin-RevId: df85f51ac1d4249ec3baf34f5ce7d150e06d2a13
2023-12-09 13:20:33 +00:00
Tagir Valeev
a8f88fa062
[java] Use HighlightingFeature.LVTI
...
GitOrigin-RevId: ce2d4c1a6338457ff57f691fc6fdc2542de5022c
2023-12-09 12:53:05 +00:00
Tagir Valeev
5b6191dd34
[java] "any" type parsing (early Valhalla prototype) dropped
...
It's unlikely that the final version of value types in Java will use this syntax.
GitOrigin-RevId: 382ec771eaac29c079cf48819f98fd155775b283
2023-12-09 11:55:52 +00:00
Mikhail Pyltsin
9aa54b1fd4
[java-highlighting] IDEA-340211 Unnamed variables, turn on for java 22 (JEP 456)
...
- turn on for java 22
- add more tests for java 22
GitOrigin-RevId: 62b25e768ef827da94acffc8a9054c6b5775254e
2023-12-08 17:13:29 +00:00
Bart van Helvert
7a58d3956d
[java-i18] Fix I18N inspection for when clauses after forcing injection host
...
#KTIJ-27448
GitOrigin-RevId: 98fc1e9cabaa9c9a3da6924d4476661f8d5e3d17
2023-12-08 10:59:35 +00:00
Bart van Helvert
e4bffbaa29
[java] Fix getting value from return expression after enabling uinjectionhost
...
#KTIJ-27448
GitOrigin-RevId: 81e1429232d0ac92af857274e0becc271d349bbf
2023-12-08 10:59:35 +00:00
Bart van Helvert
d2107596ae
[java-i18n] Normalize both arguments when comparing in getParameter
...
Fixes retrieving parameter for arguments when the argument is a polyadic string literal. #KTIJ-27448
GitOrigin-RevId: 2b40bdb8a6e6f8609daf2b92f2c1ba0a8abb6288
2023-12-08 10:59:35 +00:00
Michail Plushnikov
4222be044e
[lombok] IDEA-255688 Using existing functionality to skip checking expressions from field initializer
...
and to skip checking field initializer expression
GitOrigin-RevId: 67211ecbad65889dabe6385678cc1b7c47a96deb
2023-12-06 20:52:19 +00:00
Aleksey Dobrynin
72fd70e1d4
[java] modules: refactoring
...
GitOrigin-RevId: 5673d698548734cec85d5c6368e6aa16fd3fe3b9
2023-12-06 15:27:00 +00:00
Aleksey Dobrynin
d7659ef157
[java, highlighting] modules: show only 1 service provider gutter IDEA-185484
...
GitOrigin-RevId: e628be149707e4725b901b92d61ea7cbde28d0e0
2023-12-06 15:26:57 +00:00
Michail Plushnikov
67578dcd6c
[lombok] IDEA-255688 Partial Revert: Get rid of LombokHighlightErrorFilter for "Redundant Initializer Inspection"
...
already fixed with 24c8ea6896925f9af478b38e9a923d2ec4678ee9
GitOrigin-RevId: b1a1cf8a7fcf6a35cd67bf07fdf67fbc9415d1e8
2023-12-04 21:22:00 +00:00
Michail Plushnikov
735b2abf1d
[lombok] IDEA-255688 Get rid of LombokHighlightErrorFilter for "Method call can produce NPE"
...
Used in case of lombok lazy Getter
GitOrigin-RevId: acdb7e17facdf763a5b824ed945c69fc18646563
2023-12-03 20:41:43 +00:00
Michail Plushnikov
b2853a3590
[lombok] IDEA-255688 Get rid of LombokHighlightErrorFilter for "Variable initialized before usage Inspection"
...
Used in case of lombok lazy Getter
GitOrigin-RevId: 37699b68fd2431efe92d05e86a3b09cb59e673b8
2023-12-03 20:12:05 +00:00
Michail Plushnikov
31cbcdbfaf
[lombok] IDEA-255688 Get rid of LombokHighlightErrorFilter for "Redundant Initializer Inspection"
...
GitOrigin-RevId: abc94f0640f5cd30b1d82c3c4093474d17c2e5d6
2023-12-02 20:53:58 +00:00
Tagir Valeev
31cdc5e672
[mod-commands] ModCommand.chooseAction static method instead of ModChooseAction constructor
...
GitOrigin-RevId: 8a00b38108c8fff77a967749f16550f067191d2d
2023-11-29 15:43:25 +00:00
Tagir Valeev
241aea81b1
[mod-commands] ModShowConflicts replaced with static method showConflicts
...
GitOrigin-RevId: 471ff5387f33c3a82d67a05957396d1312ebcbbd
2023-11-29 15:43:21 +00:00
Mikhail Pyltsin
5f6d948648
[java-inspection] IJ-CR-119988 IDEA-264141 Warn if compact constructor calls methods that access fields
...
- support chain constructors with one target
- added more tests
GitOrigin-RevId: 4e9d7680cb3e74d3e6343fbe2c32c6b476bb04e5
2023-11-29 14:18:25 +00:00
Tagir Valeev
d26fdd1e80
[java-dfa] Fix super() call qualifier
...
Also: do not flush fields of this class when pure super-constructor is called
Fixes IDEA-337287 "Constant values" false-positive when base class constructor calls overridden method with field initialization
GitOrigin-RevId: 477fc87c4b679b3aa0bcdc5723bcffb644ab6976
2023-11-29 12:37:55 +00:00
Aleksey Dobrynin
2968c44e55
Refactoring: use constants instead of strings
...
GitOrigin-RevId: a5132bfb7c7f57ac96c6f7b171447d783f2f9cdf
2023-11-28 17:29:28 +00:00
Karol Lewandowski
ad246cb491
IDEA-337709: Reimplement SuppressionAnnotationInspection to UAST
...
GitOrigin-RevId: 5384975e4786fbc34114065e117f66d930435621
2023-11-27 18:29:28 +00:00
Mikhail Pyltsin
d806c4c420
[java-inspection] IJ-CR-119988 IDEA-264141 Warn if compact constructor calls methods that access fields
...
GitOrigin-RevId: 350232d305b02b49689b18eed113bdbdad108671
2023-11-27 17:22:11 +00:00