Commit Graph

19537 Commits

Author SHA1 Message Date
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
Nikita Eshkeev
b993d39371 [javadoc] IDEA-285556 Support language injection into snippet
Split the snippet body into small chunks for injection

GitOrigin-RevId: d4bf9d22521a0b418c1fab4e1de4c0ada3e6677d
2022-02-08 05:33:51 +00:00
Andrey.Cherkasov
2a8e3608ff [javadoc] Javadoc Render should include inherited documentation if {@inheritDoc} is used
IDEA-237311

GitOrigin-RevId: edf02c8445d7ffe116293f97554ed81f3f557b91
2022-02-08 04:33:52 +00:00
Andrey.Cherkasov
b49876697c [java-highlighting] QuickFixFactory#createReceiverParameterTypeFix: rename parameters and add Javadoc
GitOrigin-RevId: ac094acae400806999cbe6b434d8abe6d2a3e388
2022-02-08 04:33:50 +00:00
Andrey.Cherkasov
7ce1003bd9 [java-highlighting] Provide fix for "The receiver name does not match the enclosing class type"
IDEA-273225

GitOrigin-RevId: aac09cbfcb60a1757c7b142ac888979148d4e7cc
2022-02-08 04:33:49 +00:00
Andrey.Cherkasov
475eaf4754 [java-highlighting] Use 'SetVariableTypeFix' for the "The receiver type does not match the enclosing class type" error
GitOrigin-RevId: f60f37d148c81dfe0fb86d56a385c2561ad9bb07
2022-02-08 01:01:43 +00:00
Roman Ivanov
90682006a6 [java] RefactoringConflictsUtil: move conflicts to the last position, cleanup
GitOrigin-RevId: 3c7a7bae07c4e3b850bda7261cc049b4a298b27c
2022-02-08 00:35:44 +00:00
Roman Ivanov
c3850ec575 [java] clean up RefactoringConflictsUtil, add javadoc
GitOrigin-RevId: 0fb9718d772f9dcc7a29facf18fcb3ee7b1291b4
2022-02-07 19:49:30 +00:00
Roman Ivanov
32e4b3a8fd [java] CommonJavaInlineUtil: add javadoc
GitOrigin-RevId: 86fbac3d2bffa93a1bcc99821dac45ee3c50c74b
2022-02-07 19:49:27 +00:00
Roman Ivanov
ea32ccf2c4 [java] simplify: remove CommonJavaInlineUtilImpl and use InlineUtil instead
GitOrigin-RevId: 401018879da21d6ac862a2d88abaa38b91442651
2022-02-07 19:49:24 +00:00
Roman Ivanov
1303ca9896 PullAsAbstractUpFix add more information to better understand error
GitOrigin-RevId: 68e37095a8b6033876fa67d35ae44ce991e48c10
2022-02-07 19:49:21 +00:00
Dmitry Jemerov
c680dc213e Move "Package File" notification group to correct place, hide it from settings
GitOrigin-RevId: 04a3d9f5c4064d3c0581efb8e9d8657b1ad97e28
2022-02-07 18:29:49 +00:00
Roman Ivanov
3f659402e0 [java] consider java 18 not capturing inner class refs when possible in capturing cleaner inspection
IDEA-283307

GitOrigin-RevId: a1486b6c043cd40fff5da92125bc4c7aa2614891
2022-02-07 11:49:55 +00:00
Tagir Valeev
eea1bcb1c7 [java-analysis] Improve NullityInferrer
Use DFA where possible. Fixes IDEA-287718 A way for batch add `@Nonnull` annotation for methods, which IDEA infer as nonnull

GitOrigin-RevId: 4c8c7fb3f790648ef85a2dfed6111a3b4c50c13b
2022-02-07 10:30:54 +00:00
Alexandr Suhinin
dee2a83524 [javadoc inspection] test: fix old quickfix tests
GitOrigin-RevId: 97acecc139826abd3750cbe9c08d5c42878abf70
2022-02-07 09:48:57 +00:00
Alexandr Suhinin
a3a2ec3ab7 [javadoc inspection]: disable "JavaDoc" inspection
GitOrigin-RevId: f6cbaf6c1114636df1532e0c1c794cb19845b04b
2022-02-07 09:48:56 +00:00