Commit Graph

19552 Commits

Author SHA1 Message Date
Andrey.Cherkasov
5a384ba859 [java-highlighting] Provide quick-fix to qualify a method call with an outer class name
IDEA-255881

GitOrigin-RevId: 137ebb954ba91bbe726a7e478b7e75060cd3b7c7
2022-02-18 04:21:27 +00:00
Andrey.Cherkasov
76de5537bb [java-intentions] RemoveRedundantLambdaParameterTypesFix: change the text shown in the quick-fix popup
IJ-CR-20911
IDEA-256074

GitOrigin-RevId: 3b80041a212f75d78438d448027038d6ab06c7ea
2022-02-18 04:21:24 +00:00
Nikolay Chashnikov
3de1d05eec [API] mark for removal API which was deprecated in 2021.2 or earlier and has few usages only (IDEA-281036)
GitOrigin-RevId: 6f1cdecf02dae3ab19351a4fa4e895f98265ea0a
2022-02-17 22:44:08 +00:00
Nikita.Lyubimov
b9a43620fe [Code Vision] Introduce Rich text lenses. Move ProjectProblemCodeVisionProvider to rich text
GitOrigin-RevId: 57233fde6ed423b00311e58e2e5ec1736f06a493
2022-02-17 16:58:38 +00:00
Andrey.Cherkasov
36709d3981 [java-intentions] ReceiverParameterNameFix: change the text shown in the quick-fix popup
IDEA-273225
IJ-CR-20529

GitOrigin-RevId: d3cfbb2b3b7c8f33974085c278d158a5c6a0bbba
2022-02-17 13:20:00 +00:00
Pavel Porvatov
8996651a15 IDEA-289021 Remove PropertyBinding from Kotlin UI DSL 2
GitOrigin-RevId: a50badc85fa49e78dfa9a310e024c70a7746f305
2022-02-17 10:05:48 +00:00
Tagir Valeev
090f452ab0 Remove unnecessary boxing
GitOrigin-RevId: 5b7d8fbfca9d58fcde762c01e564b16be44d9c1f
2022-02-17 05:40:22 +00:00
Andrey.Cherkasov
22b6aff050 [java-highlighting] Provide quick-fix to remove 'var' for lambda parameters in language level smaller than Java 11
and don't suggest quick-fix to replace 'var' with explicit type for this case (IDEA-256074)

GitOrigin-RevId: e34af190c9bd86f200b26c153d27ce33750fd4df
2022-02-17 03:59:59 +00:00
Roman Ivanov
7e003a15b6 [javadoc] ensure formatter doesn't add <p> inside snippets
GitOrigin-RevId: f69f371dd2faa471cc37f3d7e8f124579317dd6a
2022-02-17 00:13:41 +00:00
Roman Ivanov
01cae8c8ae [javadoc] do not shift snippet left on reformat
GitOrigin-RevId: 69bab2bcc6e31d0b210183eb8fb6d8e3fe85db81
2022-02-17 00:13:38 +00:00
Rustam Vishnyakov
955c6f0dcf Drop @author tag
GitOrigin-RevId: dd398bb4b4d79cbc7e44563c690b0b0fa9cba180
2022-02-16 20:38:40 +00:00
Pavel Porvatov
989d7a4dd4 IDEA-287288 Empty comboBox throws NPE when apply
GitOrigin-RevId: 469d44a367d64d890ec808d309673893ce22fdcb
2022-02-16 14:27:02 +00:00
Tagir Valeev
29369ad82d Raw type warnings fixed
GitOrigin-RevId: 9a645548367b63189f4a1a95a95aeb7ed469a09f
2022-02-16 14:23:23 +00:00
Nikolay Chashnikov
3d6b5d2c09 [java] "Redundant ScheduledForRemoval annotation" inspection: don't show warning if 'inVersion' attribute is specified
It isn't possible to specify version where removal is planned via Deprecated annotation (IJ-CR-20718).

GitOrigin-RevId: 2f524b26c7d5d41ad0c251e52cd9ecead1fde54b
2022-02-16 14:03:17 +00:00
Nikolay Chashnikov
5c6c62d06e [java] move "Redundant ScheduledForRemoval annotation" inspection from DevKit to Java plugin (IDEA-288544)
The inspection may be useful in not only plugin projects (IJ-CR-20718).

GitOrigin-RevId: ec44c7485b25bba14384fda8adf3ea3f0be6fbd9
2022-02-16 14:03:16 +00:00
Tagir Valeev
38bfebaa23 Unnecessary fully-qualified names removed
GitOrigin-RevId: 903dbd15b9f5c307d2e17747a86d5eeecaff144a
2022-02-16 09:35:23 +00:00
Tagir Valeev
7cde6a70cd Fix 'Empty string used in concatenation', some other fixes
GitOrigin-RevId: 98d234aadbf787ff11df15684b4c6a405eca02e1
2022-02-16 09:35:19 +00:00
Andrey.Cherkasov
22e275ba54 [java-highlighting] Provide quick-fix to replace 'var' with explicit type in language level smaller than Java 11
IDEA-256074

GitOrigin-RevId: 478ca1de890ec7c4346e4b2436c2b500c1489602
2022-02-16 06:11:34 +00:00
Andrey.Cherkasov
5adf08dab5 [java-intentions] SetVariableTypeFix: fix for C-style array declaration
IDEA-288831

GitOrigin-RevId: ba7ff0c8c823bf5e24da5b74a8c45315cc242cdb
2022-02-16 02:32:47 +00:00
Anna Kozlova
c7328bb1a2 [java] [javadoc snippet] fix injection with unclear context
use existing JShell wrappers

GitOrigin-RevId: 2e0351145e1e3f750d781cd62bcda20cc49693c7
2022-02-15 13:14:40 +00:00
Anna Kozlova
b3cd2cb11e [java] [refactorings] simplify dependencies
GitOrigin-RevId: b9fdf3048b7d126a7d8187cbd21aba6607c65013
2022-02-15 13:14:37 +00:00
Artemiy Sartakov
d2e884db83 BulkFileAttributesReadInspection: updated description (IJ-CR-20279)
GitOrigin-RevId: 1f7022a98ececb2f7f834b8b1dc3f751eed19482
2022-02-15 10:00:39 +00:00
Anna Kozlova
d33902fd9b [java] [refactorings] change signature: resort refactoring dependencies
GitOrigin-RevId: c2205ed7b43a5a9f16e80635fae0082ab57ffcd5
2022-02-14 15:47:00 +00:00
Anna Kozlova
f5950baf9b [java] [refactorings] change signature: do not process invalid calls to vararg methods
otherwise, explicit refactoring and invocation through quick fix may lead to different results

GitOrigin-RevId: 3cbe6e82561f165b8dbe6b0c412dce6f0f6e80db
2022-02-14 15:46:58 +00:00
Roman Ivanov
bba3afe1fe [code lens] remove special FUS collector for code vision and use specific for java
GitOrigin-RevId: ef517e9379b4bf7dc50eb79820d74f377afc1607
2022-02-14 13:10:09 +00:00
Roman Ivanov
8d0018c404 minor rename JavaCodeVisionContext -> JavaVcsCodeVisionContext
GitOrigin-RevId: 19a3aab0fdb856895373a7c74de12d3b2ed962c0
2022-02-14 13:10:06 +00:00
Roman Ivanov
ee113277e4 [code vision] update related problems to work with new lenses, skip comments in all providers
GitOrigin-RevId: 23003a68cfb70bd921a1fc027c6f27dcc3ea8e66
2022-02-12 23:28:49 +00:00
Roman Ivanov
7773759b96 inlays: new code vision for code author
GitOrigin-RevId: a1a0de276ef5be564051718bc22b0fb84f634b8b
2022-02-12 18:44:30 +00:00
Anna Kozlova
134a70e68e [java] [refactorings] cleanup change class signature api
GitOrigin-RevId: 334b593ada3dbde313013fee6bd1496aaed95c32
2022-02-11 20:34:06 +00:00
Anna Kozlova
69133d660d [javadoc] avoid hardcoded links to help site
IJ-CR-20630; prepare for using ids

GitOrigin-RevId: 993ef0d6957a0407db9bfcdcd98f6aa551c4f746
2022-02-11 20:34:03 +00:00
Nikolay Chashnikov
abc373560d [API] replace ApiStatus.ScheduledForRemoval annotation by 'forRemoval' attribute (IDEA-288466)
Since we don't want to specify planned removal date anymore, there is no need to use a separate annotation.

GitOrigin-RevId: a047c55475e0f4752a2842577e094fb041c6c05b
2022-02-11 15:12:14 +00:00
Nikolay Chashnikov
0b3d405b77 [API] remove @ScheduledForRemoval annotations for elements which aren't going to be removed soon (IDEA-288466)
GitOrigin-RevId: ff025453824da99091c8e0e2b1022ac1fed7acd9
2022-02-11 13:00:20 +00:00
Artemiy Sartakov
9dcbd71cc6 MultiplePathConstructionsInspection: added inspection (IDEA-288529)
Reports multiple Path.of() or Paths.get() calls in a row with same expression

GitOrigin-RevId: 654825f7946243d0fd58ed2d2d4d577305ad0da5
2022-02-11 09:14:01 +00:00
Tagir Valeev
f286fd9dba [java-analysis] Use PsiUtil.getTypeByPsiElement where possible
GitOrigin-RevId: 0ac4f53d81d66a49202794c4300abfe3ebbbf042
2022-02-11 08:30:17 +00:00
Nikita Eshkeev
fd0a6dfb94 [javadoc] IDEA-285556 Support language injection into snippet
Usually leading asterisks of a javadoc are aligned so the common indent for the lines in a snippet's body is obvious,
but nevertheless javadoc can have multiple leading asterisks, and they don't have to be aligned.
This patch fixes the indent stripping: if the indent is too short, which will result in leaving some leading
asterisks after stripping the indent from the line, the indent gets increased, so it goes after the last leading asterisk in the line.

GitOrigin-RevId: c79bcb3e25b96b5b1ff52da350f926673d155199
2022-02-10 21:11:41 +00:00
Andrey.Cherkasov
1a0e8b4259 [java-inspections] MagicConstant: refactoring
(IDEA-275706)

GitOrigin-RevId: d387e650ffb427f02cba817a2fc8e5ca1e31f6bc
2022-02-10 19:59:21 +00:00
Konstantin Nisht
43c41d0263 [groovy] IDEA-210180: Fix rendering of multiline code tags in groovydoc
GitOrigin-RevId: ac5f00df646c164253fe383f96567e8e09d3422d
2022-02-09 17:53:58 +00:00
Anna Kozlova
5fabc33985 [javadoc] replace inferred/external explanation section with external links to help (IDEA-179266)
GitOrigin-RevId: 1e9a12f907fe6861eb0ad3ee975a11a34af4d75c
2022-02-09 14:02:19 +00:00
Ilyas Selimov
4572835609 java [unused declaration] - switch on functional ref nodes
GitOrigin-RevId: b79fa6d91931bcc2c47f6f363f4a099736000d44
2022-02-09 12:40:24 +00:00
Tagir Valeev
f1bde775ff [java-analysis] Checker's DefaultQualifier should not apply to type parameters and type parameter uses
Fixes IDEA-288014 @DefaultQualifier should not apply to parameterized type uses

GitOrigin-RevId: 2b9bd0bc4bbe594092d3b120ef8cceac718abf5d
2022-02-09 12:23:06 +00:00
Artemiy Sartakov
bcca6ef32f BulkFileAttributesReadInspection: cr fixes (IJ-CR-20279):
1. analyze all calls in method in one go
2. use UncheckedIOException instead of RuntimeException when wrapping into try catch
3. info level when try catch needed + no report in batch mode
4. updated description

GitOrigin-RevId: 0a2542b851fa32c5fde98725985f55079447b02b
2022-02-09 12:12:31 +00:00
Nikita Eshkeev
53fbc0239f [javadoc] IDEA-285556 Support language injection into snippet
Cleanup:

 - Remove the code from SnippetDocTagManipulator that doesn't produce any valuable information, since the host element is obtained from the user map of the file.
 - Eliminate a possible IOOB Exception from SnippetDocTagManipulator#getRangeInElement

GitOrigin-RevId: 9d19bb0800ad4edf1b1fc4f5b422937fd2ab3867
2022-02-09 10:19:00 +00:00
Roman Ivanov
5d82a47bfc inlays: remove dubious setting in JavaInlayParameterHintsProvider
GitOrigin-RevId: de0ff15f67a4d2720b0978c764cac0e39ae6e27a
2022-02-08 16:34:55 +00:00
Roman Ivanov
75d459e1ca JavaCodeVisionProvider: disable old style code lenses if new ones are enabled
GitOrigin-RevId: bdc865597c0d5abb758c4db40d8b8bed8d4fedd1
2022-02-08 16:34:48 +00:00
Alexey Kudravtsev
f2fadb6a29 cleanup
GitOrigin-RevId: cf1a76912f7d68af3ec6da39e178a4030243cc12
2022-02-08 14:37:44 +00:00
Roman Ivanov
1f788cfe7b [java] RefactoringConflictsUtil: move conflicts to the last position
GitOrigin-RevId: b13ee165817b87f29c9a5ff7aa6a418b18957a97
2022-02-08 13:30:30 +00:00
Nikita.Lyubimov
ea69a9cb5a [Code Vision] Added test to new code vision providers
GitOrigin-RevId: 30acfb2ed6e409f7ef449d5e2032b52ff3ff4c22
2022-02-08 13:05:52 +00:00
Nikita.Lyubimov
fc450a61c6 [Code Vision] Added API to define onClick handler during CodeVisionEntry creation.
Supported clicks for JavaInheritorsCodeVisionProvider and JavaReferencesCodeVisionProvider

GitOrigin-RevId: 73dbae5fe3e96e1b2ab6c390d9ab66b0ee1ce40b
2022-02-08 13:05:49 +00:00
Nikita.Lyubimov
9935659c8c [inlays] code vision engine
GitOrigin-RevId: e632826894ebb4b8a723c882d83489903851b9a1
2022-02-08 13:05:44 +00:00
Alexey Kudravtsev
371eb80869 notnull
GitOrigin-RevId: e5bf0cdfbcd7f0535793ab9c2b064501f27d6b28
2022-02-08 11:54:48 +00:00