Anna Kozlova
81f7d44702
[java] prettify text/fix highlighting suggested for the target placement (IDEA-286811)
...
GitOrigin-RevId: d77132fdf02f5663ef5f1e70de623aef00664225
2022-01-18 18:51:46 +00:00
Tagir Valeev
d2e2a474ad
[java-dfa] First class support for Collection.removeIf()
...
Fixes IDEA-286737 Side-effects from removeIf predicate are not taken into account
GitOrigin-RevId: 6efc71f98d10824a288e4510a209da34ad381bbb
2022-01-18 15:44:01 +00:00
Tagir Valeev
7d070fec8f
[java-tests] Imports optimized
...
GitOrigin-RevId: 0ebf2decdd79a2e9164a01fb26bd3a141c4c1552
2022-01-18 15:43:58 +00:00
Nikolay Chashnikov
0c1b721b52
[groovy] update bundled Groovy to 3.0.9 (IDEA-284495)
...
Explicit implementation of some default methods in interfaces from Groovy library are added to work around compilation problems (modules which target Java 6 doesn't see default method in interfaces). Test data for ClsStubBuilderTest is changed to reflect changes in bytecode.
GitOrigin-RevId: 258ce1a42102102850b74721fc929bceae35e3d7
2022-01-18 14:34:57 +00:00
Anna Kozlova
4972eabd8b
[java] don't replace lambda with method reference when qualifier is nullable (IDEA-278691)
...
GitOrigin-RevId: f514b690e9e2d007c124ce2b7179af39b6131f3f
2022-01-17 18:21:47 +00:00
Anna Kozlova
e3c0d74cb6
[java] don't propagate ellipsis type as target type for non-vararg calls (IDEA-286407)
...
GitOrigin-RevId: 3693373240012db841bffaca1a5f8765200acbc8
2022-01-17 18:21:45 +00:00
Tagir Valeev
09c99286e9
[java-dfa] Ignore locality in isSuperType for types compared by equals()
...
Fixes IDEA-286020 False-positive 'result is always false' when converting string to bytes and backwards
GitOrigin-RevId: 274434e1f80a127645a71cf14d6218fa90aa76ca
2022-01-17 11:13:59 +00:00
Tagir Valeev
f082f16134
[java-inspections] OverwrittenFieldAnalyzer: writing a field should reset written-not-read status for all dependent vars
...
Fixes IDEA-286285 Incorrect redundant line when dealing with linked list traversal
GitOrigin-RevId: 3658233e9f82e4129bcf35d14eafc1007d946fc7
2022-01-17 06:56:40 +00:00
Andrey.Cherkasov
1687e43a3f
[java-highlighting] Fixes after review (IJ-CR-19483)
...
GitOrigin-RevId: 19cb1e1ef0b68a296085fcee6d452ec40c51baf9
2022-01-15 19:22:09 +00:00
Nikita Eshkeev
34ec0bb7c9
[javadoc] IDEA-285556 Support language injection into snippet
...
Add an enclosing class for snippets in order not to make users define a class in a snippet code to eliminate syntax errors when the code consists of a set of instructions
GitOrigin-RevId: c6f52f94d51fdc6393c8a9fdc0ddb615e8d37b17
2022-01-15 01:44:09 +00:00
Anna Kozlova
724ed16f6f
[java] replace default catch block template (IDEA-161593)
...
`throw e` won't fix the compilation error, comment - is not really better than empty catch block.
GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
2022-01-14 20:39:23 +00:00
Anna Kozlova
8a273eca42
more descriptive error message
...
GitOrigin-RevId: 2a9672de87647e4217ddc5f470229cb5cc614c63
2022-01-14 12:29:27 +00:00
Dmitry Batkovich
49107f6cac
set language level to 11 in CompilerReferencesMultiModuleTest
...
GitOrigin-RevId: 35da3fa09b222089605f45e173288e9db16ada01
2022-01-14 05:22:17 +00:00
Bas Leijdekkers
ce078dac32
RegExp: new "Regular expression can be simplified" inspection (IDEA-286122)
...
Supersedes the "Asterisk closure can be collapsed to plus closure" inspection which was only available in PhpStorm
GitOrigin-RevId: a63c6fce88b3700cc521e8b113069a4b2b50a3e4
2022-01-13 20:26:25 +00:00
Anna Kozlova
e5e19be19f
[java] fixed highest language level
...
GitOrigin-RevId: 2a8017675ea4311fdc8944352b0660d99a853de9
2022-01-13 17:52:52 +00:00
Anna Kozlova
cadfa2b651
remove unused code
...
GitOrigin-RevId: 53204a0b8c8e05072ea379e20760ee51e6e97f32
2022-01-13 17:52:40 +00:00
Alexey Kudravtsev
079e80a8ab
add test for java call hierarchy with wildcards; refactor HierarchyTester to allow node descriptor comparator to test the children order
...
GitOrigin-RevId: 6b60e71eb99206b38072c3b43e68b4a56c9ff80b
2022-01-13 17:51:55 +00:00
Alexey Kudravtsev
dcd374eb82
refactor HierarchyTester to allow node descriptor comparator to test the children order
...
GitOrigin-RevId: 0e307b174a68169e37d66e8ef4432fcdaab0f02d
2022-01-13 17:51:52 +00:00
Tagir Valeev
0f431159c9
[java-dfa] Properly process boxing of generic parameter in constructor
...
Fixes IDEA-286477 Primitive type considered null in generic
GitOrigin-RevId: f9e8a5eae5505511d84258b8a1bd67deafe8b8a3
2022-01-13 12:45:34 +00:00
Eugene Zhuravlev
370339d76e
JPS: handle method visibility changes that might lead to ambiguous call issues (IDEA-286565)
...
GitOrigin-RevId: 7ecd81c5786d33573c39116a3e16d82bef3a752d
2022-01-13 07:58:12 +00:00
Alexey Kudravtsev
ed360ef370
caller hierarchy: in case of bound generics do not filter out bounds-related usages to fix another case in IDEA-275145 result of call hierarchy is not correct
...
GitOrigin-RevId: c713a96efd775a301439c4e6d5502d3827477fcb
2022-01-12 16:50:30 +00:00
Andrey.Cherkasov
205cf1eb2b
[java-inspections] Java8CollectionRemoveIf: highlight only 'for'/'while' keyword instead of the whole statement
...
GitOrigin-RevId: b2b312efab7a974dab6a2021a788274bc6cfc1b2
2022-01-12 15:15:06 +00:00
Andrey.Cherkasov
eb254acc5c
[java-inspections] Fixes after review (IJ-CR-18136)
...
GitOrigin-RevId: a0864bcf774d435dc54ab63de1966f1a7779236f
2022-01-12 15:15:03 +00:00
Dmitry Batkovich
12dee27180
change language level to 11 for AbstractCompilerAwareTest-s
...
GitOrigin-RevId: 14881e21b645539209e974884eec4cb8205b5480
2022-01-12 13:39:08 +00:00
Bart van Helvert
a7b68b99b7
[java-decompiler] IDEA-246757 Fix type inlay test line numbers
...
Line numbers changed because type annotation are moved next to the type instead of on the declaration.
GitOrigin-RevId: 6a0eccf89276d94b35f696d48c13adae03f8603f
2022-01-12 12:17:13 +00:00
Aleksei Pomelov
5ddac6c22d
IDEA-283270 Respect project configuration on cmdline formatting
...
GitOrigin-RevId: b70964137ce1346898a452d9531bb672e44b8975
2022-01-12 11:40:50 +00:00
Dmitry Batrak
73ea942d88
remove old rendered doc implementation
...
GitOrigin-RevId: ef8925a32c727e8cd7e2c81f95b7e4b1f61f27ba
2022-01-12 11:23:48 +00:00
Anna Kozlova
2e0c15e236
[run] disable run markers on interface inheritors with static method (IDEA-230757)
...
also fixes run check for merged markers
GitOrigin-RevId: d4191755aa134ba2376e4911705bf7a7cc7083d0
2022-01-11 17:33:34 +00:00
Tagir Valeev
641a58d171
[code-completion] IDEA-251113 Complete prefix matching only
...
GitOrigin-RevId: 53c6d0ea66288939953df6d862d40eee364d3941
2022-01-11 14:34:51 +00:00
Tagir Valeev
010294e044
[java-dfa] More aggressive flushing of calls
...
Pure call result might depend on non-qualified variable as well (e.g., a static field)
Fixes IDEA-286208 wrong judgement of code
GitOrigin-RevId: 91ce214a1bc75bad64b344f332e85574fba25ca6
2022-01-11 09:28:40 +00:00
Tagir Valeev
5af152b20c
[live-templates] else-if: add CONDITION variable
...
GitOrigin-RevId: 00e4800c96682bded8589a54efade59572f73d2b
2022-01-11 09:28:37 +00:00
Anna Kozlova
f71084dd8e
[java] add special treatment for synthetic enum methods during refactorings (IDEA-286291)
...
GitOrigin-RevId: a8587ed3a1da04d22f8345215ac4b266d8c036f3
2022-01-10 21:31:02 +00:00
Anna Kozlova
fc7dc96add
[java] fix rename chained constructors in records (IDEA-286155)
...
GitOrigin-RevId: 0c787ae31874d9a4239df0cf064d19710f680525
2022-01-10 21:31:00 +00:00
Tagir Valeev
ea525fb1fb
[code-completion] PinyinMatcher: avoid empty line completion; add middle-matching (IDEA-251113)
...
GitOrigin-RevId: 88c83fa2b42e48ece84dd686202957a80425e45c
2022-01-10 08:52:10 +00:00
Tagir Valeev
2d08b71a4e
[java-inspections] IDEA-285964 Replacement for 'Expression can be replaced with Double.compare()' sometimes breaks the code
...
Option is added to disable the inspection when semantics change is possible
GitOrigin-RevId: 97e5576582b65c3ba0cb3122d6274a37e271386d
2022-01-10 08:52:07 +00:00
Tagir Valeev
71a587c4b2
[code-completion] IDEA-251113 Add autocomplete suggestion for Chinese characters' initial Pinyin Characters
...
GitOrigin-RevId: e4c32bbe7d42d8db9bec72b5c28a7d13fb55b8ec
2022-01-10 08:52:04 +00:00
Bas Leijdekkers
df2af98547
IG: don't warn on call to .formatted() when qualifier contains %n (IDEA-284569)
...
GitOrigin-RevId: e1b9a826f67e0209f82810ed19f907b2d0161605
2022-01-06 20:08:21 +00:00
Andrey.Cherkasov
214ee7b316
[java-highlighting] Bad type in switch expression: provide quickfix to change return type of a method
...
IDEA-257275
GitOrigin-RevId: 5032f269098c8d6aa16a2a9231fc9ac566b85487
2022-01-04 21:57:32 +00:00
Andrey.Cherkasov
cc1c1cc844
[java-inspections] RedundantCollectionOperation: warn 'collection.addAll(List.of("x"))'
...
'collection.addAll(Set.of("x"))'
'collection.addAll(Collections.singletonList("x"))'
GitOrigin-RevId: 4a9185f774f9368fdcb5377eaeddb108b521f174
2022-01-04 21:57:31 +00:00
Vladimir Krivosheev
5d0b82fa10
cleanup, use object 2 int map
...
GitOrigin-RevId: 0b8056099d9050fc9fe71b7671c40dbee1b17e05
2022-01-02 10:38:02 +00:00
Nikita Eshkeev
95e53ac831
[javadoc] IDEA-285556 Support language injection into snippet
...
Add a enter handler for snippets to insert leading asterisks if needed.
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: 365eaf0c873f11673dd03cbbb7b4395410e0e110
2022-01-01 16:30:04 +00:00
Andrey.Cherkasov
8bd14ace33
[java-inspections] ExcessiveLambdaUsage: suggest replacing 'list.replaceAll(… -> …)' with 'Collections.fill(list, …)'
...
GitOrigin-RevId: 5a548eb7a9e9d78ca46188b29c3e69f2502b99d3
2021-12-31 16:26:05 +00:00
Vladimir Krivosheev
5418193f18
CompilerReferenceService as a preloaded service - this index is important is used right after the project opening to highlight
...
GitOrigin-RevId: ea5b6b03cd1ea5f4e8f7a8b6c7dff1f51d2a3567
2021-12-31 12:06:52 +00:00
Alexey Kudravtsev
065798281a
cleanup
...
GitOrigin-RevId: b9620e6f5df659a1547053feea885e2b1873731f
2021-12-30 12:37:25 +00:00
Aleksei Pomelov
93539a7f07
IDEA-283270 Respect project configuration on cmdline formatting
...
GitOrigin-RevId: 4dd0e8d82ed655ce4c24bb87ae162213e6f93b7e
2021-12-30 11:25:34 +00:00
Andrey.Cherkasov
345977a17c
[java-inspections] Fixes after review (IJ-CR-16364)
...
GitOrigin-RevId: 68d047ac93ce4c2edbe200635505d661b7da25e9
2021-12-30 01:16:16 +00:00
Andrew Kozlov
c549dd3ff2
[editor] additional logging #CWM-4755
...
GitOrigin-RevId: 8502dc112d40b8a3e51c705657a683faae7ad65e
2021-12-29 17:19:44 +00:00
Dmitry Gridin
62ea2bd6b1
[fus] implement library usage collector for Kotlin and Java
...
^KTIJ-956 Fixed
IJ-MR-16929
GitOrigin-RevId: a2f55b9fa88d0ebfea3f692f701da7a64c678ef8
2021-12-29 12:54:25 +00:00
Nikita Eshkeev
6ffd9bc4b6
[javadoc] IDEA-285556 Support language injection into snippet
...
JEP-413 says that by default a snippet tag's body is in JAVA language, so JavadocInjector injects JAVA into a snippet tag automatically. The injector relies on the lang attribute to inject a language, if the attribute is not present, then JAVA is used.
In order to make a user's live easier the injector doesn't make user guess the correct language name, instead if the injector didn't find a language by the value from the `lang` attribute it traverses throughout all the registered languages and looks for the one the name of which matches the specified ignoring case. That is the case for java: in our code base the language goes by the `JAVA` id, but users tend to write the language name in lowercase ("java") or with only the first letter in the capital case ("Java")
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: cca8c90bb5ad04485f1bf4119b9936114e5492e4
2021-12-28 19:34:50 +00:00
Roman Ivanov
c9ec981d20
[java] fix test data
...
GitOrigin-RevId: c574abaafb637d2f403ab9c209c62c70b8d46f66
2021-12-28 14:22:23 +00:00