Commit Graph

4793 Commits

Author SHA1 Message Date
Tagir Valeev
46c6cb94ad [java-intentions] EA-465575 - AE: JavaParserUtil.parseFragment
GitOrigin-RevId: 51d05798ab9a127508bcf531a3aa1a13cdda5aae
2022-08-01 18:23:37 +00:00
Anna Kozlova
a56cd0ec87 [java] disable change signature from usage when trivial
workaround type annotations case

GitOrigin-RevId: 4c2878ff49039830bf67e66f2c2948ece03cfe0c
2022-07-29 19:28:13 +00:00
Tagir Valeev
49f4397ba0 [java-intentions] More preview tests
GitOrigin-RevId: 4d6a5487576dbbc4aca9c89b067eec8218aff686
2022-07-29 17:55:15 +00:00
Tagir Valeev
1361a10017 [java-intentions] Remove unused assignment/initializer: preview-friendly
GitOrigin-RevId: de9da180223f231638eb51804b7ed9c26c36d772
2022-07-29 17:55:14 +00:00
Tagir Valeev
7e1064ea3c [java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00
Tagir Valeev
e74564a52c [java-intentions] Merge SuperMethodReturnFix into MethodReturnTypeFix
GitOrigin-RevId: 92f0e44f389637e925f11b21fb581ac3d8382855
2022-07-29 17:55:12 +00:00
Tagir Valeev
2c3779a08a [java-intentions] ChangeMethodSignatureFromUsageFix: better handling of annotations
GitOrigin-RevId: b4de4a64ff488b167352bac2172c9df55836b819
2022-07-29 17:55:07 +00:00
Tagir Valeev
758ecdbb56 [java-intentions] More preview tests
GitOrigin-RevId: ffe102e1f4377d52f988f59c407af3dd7acc36fc
2022-07-29 17:55:03 +00:00
Tagir Valeev
01cc468b55 [java-intentions] InlineStreamMapAction: preview-friendly
GitOrigin-RevId: 4c4a288c134b9bd9d772e42df64c8722c0bd7c65
2022-07-29 17:55:02 +00:00
Tagir Valeev
0695b6ae8a [java-intentions] InitializeFinalFieldInConstructorFix: preview-friendly
GitOrigin-RevId: 9ccb207c593ca448f9f79da94876ac87c2cac5ae
2022-07-29 17:55:01 +00:00
Tagir Valeev
11130867f8 [java-inspections] ExtractSetFromComparisonChainAction: preview-friendly+tests
GitOrigin-RevId: 4749198f7b5c3aa0da3efe82eafd8161b429b789
2022-07-29 17:55:00 +00:00
Tagir Valeev
dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00
Tagir Valeev
c642b9a580 [java-intentions] CreateLocalVarFromInstanceofAction: exact preview+tests
GitOrigin-RevId: acf0c175cda663c43d5feb5b503ed462c5acf92d
2022-07-29 17:54:57 +00:00
Bart van Helvert
1da8b85338 [java-inspections] Improve 'AddUnknownTagToCustoms' warning message
GitOrigin-RevId: bceda7452262b53ca05624669f7d7723691abfc0
2022-07-29 14:24:23 +00:00
Bart van Helvert
ed388efc1a [java-inspections] IDEA-298787 Add preview to 'ConvertFieldToLocalQuickFix'
GitOrigin-RevId: b8b06b05c9c3fbb8111f3caded9a6a2f5d3e911f
2022-07-29 14:24:14 +00:00
Bart van Helvert
57b3e68b1b [java-inspections] IDEA-298539 Fix parameter can be local quick-fix undo
Also makes it so refactoring isn't called in write action and won't cause deadlocks.

GitOrigin-RevId: 204fd9f9a0b2e942b1c9eb56b3d9938b2666d123
2022-07-29 14:24:01 +00:00
Alexandr Suhinin
c405ff9f52 IDEA-298345: check exhaustiveness for nested deconstructions
GitOrigin-RevId: a954cac5973ed9df086246eba980524f8e483cb0
2022-07-28 08:26:20 +00:00
Alexandr Suhinin
305a4a4c95 IDEA-298317: don't highlight null as dominated
GitOrigin-RevId: e1bd7a6fdaa683b652295866bfd68fa305748d8c
2022-07-28 08:26:17 +00:00
Roman Ivanov
86406ca919 [java] ConditionalBreakInInfiniteLoopInspection invert variable name and condition + fix test data
GitOrigin-RevId: f00028d2e207670784887a66d2cd12cb61f11127
2022-07-27 16:06:26 +00:00
Tagir Valeev
f19b3cd370 [java-inspections] IDEA-298718 Simplify array/list/string creation and immediate access
GitOrigin-RevId: 60df8ffa9aee53abf897e4fa6b42da4909a0e40b
2022-07-27 13:56:37 +00:00
Tagir Valeev
6266f14d9b [java-inspections] CreateLocalFromUsageFix: tests for preview
GitOrigin-RevId: 18145df666bfb6601725d6cdd13a14bb341fe32a
2022-07-27 10:00:37 +00:00
Tagir Valeev
00e0603e53 [java-inspections] createGetterOrSetter: tests for preview
GitOrigin-RevId: b570df26d740aacb84357b1fbdbb0ced890970f0
2022-07-27 10:00:35 +00:00
Tagir Valeev
d3341c8cc9 [java-inspections] CreateInnerClassFromUsageFix: preview-friendly
GitOrigin-RevId: ed0dbc12d26e87c17315f369da687dd4fe65d63d
2022-07-27 10:00:34 +00:00
Tagir Valeev
ed8c359a4c [java-inspections] CreateInnerClassFromNewFix: preview-friendly
GitOrigin-RevId: 8961061d0a65a1ce182c79d3d108db30b2e2ee18
2022-07-27 10:00:32 +00:00
Tagir Valeev
8560c6a5d1 [java-inspections] More preview tests
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
2022-07-27 10:00:31 +00:00
Tagir Valeev
4f9e408a4b [java-intentions] Preview tests for ChangeMethodSignatureFromUsageFix; preserve modifiers in preview
GitOrigin-RevId: 851fbe2731eae7b5e67c1dfa5788e98fdfeb8f8c
2022-07-22 11:54:06 +00:00
Tagir Valeev
9c6aeba5b4 [java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
2022-07-22 11:54:00 +00:00
Tagir Valeev
8269f89b1a [java-inspections] PsiDiamondTypeUtil: fix method comparison
IDEA-298142 Type parameter is not omitted in the quick-fix preview

GitOrigin-RevId: 4a0e238a5c124e6be6230994bccdfc742d4da72e
2022-07-21 18:15:28 +00:00
Alexandr Suhinin
888020ea77 IDEA-298318: report mismatch errors for deconstruction inside instanceOf
GitOrigin-RevId: 591cf3577babf47512e1fbc5bb70b182aa0c08ce
2022-07-21 11:31:55 +00:00
Alexandr Suhinin
3a63092336 IDEA-298324: report mismatch errors in recursive deconstruction patterns
GitOrigin-RevId: 31271e8a4020c9e3d2fed77f1f32f4a69e3b07cb
2022-07-21 11:01:18 +00:00
Alexandr Suhinin
32f72c122c fix: broken recursive call
GitOrigin-RevId: 15ed2adedae203bf2c1dbb2170f45b49c361a2ce
2022-07-21 11:01:14 +00:00
Alexandr Suhinin
c68519d5f1 IDEA-297396: fix illegal fallthrough for pattern guards
GitOrigin-RevId: 41a247c8a52df15c86fcd0acc934308034a2da65
2022-07-20 19:59:35 +00:00
Alexandr Suhinin
c7d05b20a8 IDEA-297405: check exhaustiveness in switches with deconstruction pattern
GitOrigin-RevId: 1a1724a0842f7c387524989d6178283891dfc7cb
2022-07-20 19:59:32 +00:00
Alexandr Suhinin
c1c07294bd IDEA-298282: report error if switch has default case element and unconditional deconstruction
GitOrigin-RevId: a4ee7da8085f322c4211ffb3bb7e4898a0b73f36
2022-07-20 19:59:30 +00:00
Alexandr Suhinin
10e2fcda21 IDEA-297389: highlight mismatched deconstruction patterns
GitOrigin-RevId: 0a53c42751596aad5298520a0f23c731d7449fd5
2022-07-20 19:59:27 +00:00
Alexandr Suhinin
544ebb9855 IDEA-297404: fix domination highlighting for DeconstructionPattern
GitOrigin-RevId: 67bebc00df3c4d6864d835c30865e1384ae5be62
2022-07-20 19:59:24 +00:00
Bas Leijdekkers
448141ced9 Enable preview for SurroundWithIfFix and make available in batch inspection results
GitOrigin-RevId: bb085c798429d4b5f4678d82ba4915ebff0a6f43
2022-07-20 18:53:47 +00:00
Roman Ivanov
f5621d553f [java] show user-friendly error message for patterns similar to calls in switch labels
GitOrigin-RevId: 09f4de4b1929950320511e853a00c2a3dc1e4fb0
2022-07-19 18:03:40 +00:00
Anna Kozlova
09b8dc66e1 [java] add remove arguments to (implicit) constructor calls (IDEA-224760)
GitOrigin-RevId: 5984a6c6310e69275054d2ebb70717635683f490
2022-07-19 08:45:03 +00:00
Bas Leijdekkers
304a1c2df5 Highlight incorrect escape instead of entire string literal
GitOrigin-RevId: 5455c5b43f8b19161dfa23643c197c8136cbbeff
2022-07-18 23:37:59 +00:00
Bas Leijdekkers
b31a73dd10 Java: more accurate highlighting of illegal escape sequences in strings
GitOrigin-RevId: 6461c554d2e44cf4e33278daefa924c73d0ca662
2022-07-18 23:37:51 +00:00
Bas Leijdekkers
f0f3f4098c Simplify unsupported features warning
GitOrigin-RevId: 5295c833018bbbc23f8087ae52edcb7702aa8e0b
2022-07-18 23:37:50 +00:00
Bas Leijdekkers
620e293d16 Make warning wording consistent (also with other languages like RegExp & JSON)
GitOrigin-RevId: 7d9dd613239030809eb1312436ce309c7cd13a12
2022-07-18 23:37:48 +00:00
Bas Leijdekkers
abdccd20d1 Highlight illegal unicode escapes in Java comments (IDEA-297534)
GitOrigin-RevId: 8efa596ed24018650d709c1805d16edf8938b424
2022-07-13 21:18:45 +00:00
Tagir Valeev
0e66f0b536 [java-highlighting] IDEA-160446 Java. "Array type has too many dimensions" error is not highlighted
GitOrigin-RevId: 40ae7025e52f6be0486ad2e1cf3bf4a85e9904ea
2022-07-11 15:56:33 +00:00
Bas Leijdekkers
f3074be38d Textual changes for "'InputStream' and 'OutputStream' can be constructed using 'Files' methods" inspection
GitOrigin-RevId: 950341cb074fa4c5f62a776057f1eabf55f20321
2022-07-11 15:21:55 +00:00
Bas Leijdekkers
7e9ee7537f Textual changes for "Bulk 'Files.readAttributes()' call can be used" inspection
GitOrigin-RevId: 8ca94e665d8345b4b299415fd3bf43cf22d28c68
2022-07-11 15:21:53 +00:00
Anna Kozlova
205ff84754 testdata for EA-443617 T: PsiDiamondTypeImpl.resolveInferredTypesNoCheck
fixed by 5fc2f7118bf68a1d0b9f80bfcbbbfa768fc6bea8

GitOrigin-RevId: 93cfc70499f4f9cc5d8d4ccdbde1df985f1b313f
2022-07-11 13:21:20 +00:00
Anna Kozlova
c0dc171db2 [java] tolerate recursive applicability check
EA-239076 - NPE: MethodCandidateInfo.inferTypeArguments; possible if `var` type variable contains self reference in its initializer

GitOrigin-RevId: b0fb15c563d41b5124a381988e335162c723cd5e
2022-07-11 08:10:11 +00:00
Anna Kozlova
79200753fb [java] fix spaces in test data
GitOrigin-RevId: d18a60e9f966bf88b2fc2504cc1386606a980941
2022-07-08 14:04:21 +00:00