Anna Kozlova
bbf809f75a
[java] don't calculate var type based on invalid data; reorder var based errors (IDEA-284840)
...
GitOrigin-RevId: 097f9b2d66f9381a321efe16d3ebc155ac31ee39
2021-12-16 05:53:07 +00:00
Bas Leijdekkers
dbc5354977
AnalysisScope: iterate over virtual file set if it is available for increased performance
...
GitOrigin-RevId: 6c0b2a1eafe4e25f591649c2af778f4fa6a8f293
2021-12-15 15:53:01 +00:00
Bas Leijdekkers
7e77df442f
[global inspections] wait for initialized to avoid race condition
...
GitOrigin-RevId: c70dd0260da5504ee23632d735acaf59529820c0
2021-12-15 15:53:00 +00:00
Tagir Valeev
7367405b46
[java-highlighting] IDEA-284864 Improve reporting of always false while/for loops
...
GitOrigin-RevId: 9e7403383296cfa3c9478d8e635e592d31ba0518
2021-12-14 13:26:42 +00:00
Gregory.Shrago
12c74c9d89
make java fqn index use string keys
...
GitOrigin-RevId: 637d790f739944841efe199888666d2fe300dbf2
2021-12-14 12:42:07 +00:00
Tagir Valeev
f7f8e1ac14
[java-dfa] JavaDocs
...
GitOrigin-RevId: 33ef2b7cca378ff5e6ab4a3dbdc642748671d72b
2021-12-14 08:25:21 +00:00
Tagir Valeev
2fea8eb09e
[java-inspections] Support preview for SetInspectionOptionFix inside DataFlowInspection
...
GitOrigin-RevId: bf15c8f03396f120746e7e6008460647216971ae
2021-12-13 10:26:43 +00:00
Roman Shevchenko
cbd0b038ee
[platform] deprecating NullableLazyValue#createValue
...
GitOrigin-RevId: c5311629de456c0890fbd4fbdf2e65cc14b9d2e3
2021-12-13 07:08:11 +00:00
Ivan Semenov
a29f755592
[ui] remove duplicated property
...
GitOrigin-RevId: e9aa2a4efa27c794cda905e081137cda798ab5bb
2021-12-12 22:40:03 +00:00
Tagir Valeev
325edf9af2
[java-highlighting] IDEA-202570 Unreachable statement inspection should highlight whole switch expression
...
Also, fixed unreachable statement highlighting in different cases
GitOrigin-RevId: 20b28272b51c77e3413e1ca143222d35199728bd
2021-12-08 02:48:47 +00:00
pyltsin-m
0ded7bc2f5
[java-inspections] IDEA-284073 Enhance dfa: Support that Stream.toList() is unmodifiable
...
PR#1861
GitOrigin-RevId: ddddc2451708df8e11d00e059eafdb8674fa562b
2021-12-06 10:05:53 +00:00
Tagir Valeev
7cfaafd403
[kotlin-dfa] KTIJ-20287 Kotlin DFA: First-class support for object types
...
GitOrigin-RevId: 91cff5f08e01a7ab7fc9656abb0618bed2ab2dda
2021-11-30 08:36:22 +00:00
Anna Kozlova
e6165048e8
[java] skip plain cannot infer diamond error (IDEA-283409); add ambiguous constructor call (IDEA-272115)
...
this unifies error messages with method calls and allows more specific tooltips and additional fixes
GitOrigin-RevId: 5ab4340d822bba3d6563da12a16e4c41216a8627
2021-11-29 19:27:48 +00:00
Andrey.Cherkasov
01cc4df97e
[java-inspections] Java8ListReplaceAllInspection (IDEA-270920)
...
GitOrigin-RevId: 1e79021fc4860398bc7bab047a5ec692e137d9dc
2021-11-29 06:59:20 +00:00
Tagir Valeev
d0348e9ba0
[lombok] IDEA-283371 Disable constant expression evaluation for Builder.Default fields
...
GitOrigin-RevId: 7c5f5b6bd9eb1f462af626ecd4a7b43519c62ada
2021-11-26 10:11:33 +00:00
Tagir Valeev
fb01dcf951
[intention-preview] IDEA-283366 Intention preview for "Set inspection option" fix
...
GitOrigin-RevId: 5a1e2ea46191542d56df2beba6fefb0b0b438981
2021-11-26 06:37:13 +00:00
Tagir Valeev
89025c2c75
[java-inspections] MethodArgumentFix: use smart pointer
...
Fixes IDEA-283225 Quickfix (Wrap using Optional) applied to wrong line after switching statement order
GitOrigin-RevId: 3cec4544479adaebe6b38b68e178f3874335d0b9
2021-11-25 09:25:11 +00:00
Bas Leijdekkers
85001dc318
[global inspections] use tryCast() instead (IJ-CR-17543)
...
GitOrigin-RevId: f094103a6a2c4600feba69f477116c226d1d0878
2021-11-24 11:43:18 +00:00
Tagir Valeev
60d236e7b5
[java-dfa] Reuse CFGBuilder#compare
...
GitOrigin-RevId: 1b81bca90e9abb414a8c9ff17202c461e42cb2d0
2021-11-24 08:12:11 +00:00
Anna Kozlova
6a2a667f6b
[java] show mismatch arg count error and highlight only additional arg (IDEA-282207)
...
fix ranges should be extended for the whole argList, otherwise only the first highlighting become fixes. It's possible to attach separated fixes though it may be more useful to have single fix over whole range, let's see
GitOrigin-RevId: a568d2633824abd7207fb3c54687b64588a43e62
2021-11-23 12:33:47 +00:00
Ilyas Selimov
dfc4b58130
java - unwrap switch label fix: reused a code surrounder to define whether the fix is possible in particular context
...
GitOrigin-RevId: 75cdf659df8ebf4634c69cf9d472904ae24326af
2021-11-22 16:17:05 +00:00
Andrey.Cherkasov
181ac7d9b0
IDEA-278884: fixes after IJ-CR-16898
...
GitOrigin-RevId: 0d3c919534835a1a2a76ca86af624de4a476056b
2021-11-22 14:50:55 +00:00
Bas Leijdekkers
ef03007348
[global inspections] fix SOE in "Declaration access can be weaker" inspection
...
GitOrigin-RevId: 86d08601730133d39b67fa889166eeef852cc45e
2021-11-20 09:41:14 +00:00
Bas Leijdekkers
9cff7432ef
don't offer fix to remove 'new' keyword if the member is not static or the class qualifier has type parameters (EA-411014 - AE: JavaParserUtil.parseFragment)
...
GitOrigin-RevId: c2585277e417432fbfd24be106667ff5cfd373f2
2021-11-17 19:58:05 +00:00
Ilyas Selimov
064ac2f25f
java - unused declaration: moved initialization of independent properties to the ctor of the node
...
The commit fixes the flaky test testParameterNotUsedInLambda but not the data race problem overall
GitOrigin-RevId: 10d4468d9a04a8429e6622eaf337dd0f559f9dfd
2021-11-17 15:42:07 +00:00
Alexey Kudravtsev
599616668f
reduce string allocations during inspection run
...
GitOrigin-RevId: 4096f6aab5293dd99cf071e0a90475ee2f8ffc0a
2021-11-17 13:03:56 +00:00
Ilyas Selimov
c3a56381e7
java - unwrap switch label fix: support used pattern variables in the switch
...
GitOrigin-RevId: 47387f009a92a5e17846da4fa131f754234d7cf6
2021-11-16 11:11:07 +00:00
Tagir Valeev
4aa0b0117a
[java-dfa] IDEA-282455 Show warning when result of String.indexOf(char) is compared with String.length
...
GitOrigin-RevId: 2c7ffc19a35f9e934713342c016e8e563c8a4b22
2021-11-16 10:45:01 +00:00
Anna Kozlova
31178b25b4
[java jigsaw] allow same module in different jars on the module path (IDEA-282419)
...
GitOrigin-RevId: 51ba9e660850eac047700ac1a055ee51af0319e3
2021-11-16 08:08:45 +00:00
Tagir Valeev
c0cab4aded
[java-inspections] ChangeStringLiteralToCharInMethodCallFix: preview-friendly
...
GitOrigin-RevId: 521c025622f562abd54a200510b47e1f39d52a37
2021-11-15 05:14:50 +00:00
Anna Kozlova
2aa9ed116e
[java] switch expressions: allow null label with any non-primitive type (IDEA-282339)
...
GitOrigin-RevId: d6438daeba88dc37ec34509e331394a87cf1cd8d
2021-11-14 18:48:39 +00:00
Ilyas Selimov
0b61a2f184
java dfa - prevent highlighting of total pattern, if it is either the only one in the switch block or default label exists too
...
GitOrigin-RevId: 5d16deee96edac73e3b8284ddbf1893836a897d3
2021-11-11 07:35:59 +00:00
Andrey.Cherkasov
086e760e08
[java-highlighting] Fix bug about applying "Create missing switch branch" fix produces a red code
...
(IDEA-278884)
GitOrigin-RevId: 690fa0ae782ee065b35e91f6d1e0df846bd9369f
2021-11-11 07:03:04 +00:00
Ilyas Selimov
f23ddb208b
java dfa - prevent highlighting of total pattern, if it is either the only one in the switch block or default label exists too
...
GitOrigin-RevId: 113c53307e94cc53ef9ac10e1e33731e06c4d3a6
2021-11-11 06:56:06 +00:00
Tagir Valeev
fe30b9dd86
[java-dfa] MethodReferenceInstruction: minor improvements according to review comments
...
GitOrigin-RevId: 263637326dd610eb6edd760d9c53a39e4e5e2d18
2021-11-10 14:26:04 +00:00
Tagir Valeev
ed69cc6401
[java-inspections] IDEA-282262 Add 'Find the cause' action to 'Redundant operation on empty container' inspection
...
GitOrigin-RevId: 79f33120532750b5e93ffa3d7ce40c2345d17e39
2021-11-10 14:26:03 +00:00
Ilyas Selimov
2d0dc0e13e
java - removed redundant logs
...
GitOrigin-RevId: 90ddfc5705d33629c09eb49a1b9f23aa0611d898
2021-11-10 10:17:06 +00:00
Denis Zavedeev
3b277a36bf
[java-inspections] IDEA-281190 MethodHandle inspections do not consider MethodType overloads
...
PR#1798
Committed-by: tagir.valeev@jetbrains.com
GitOrigin-RevId: e0c59271f5345b45291f177de610bd5f1fb9f6c6
2021-11-10 07:29:03 +00:00
Andrey.Cherkasov
e15a3c250a
[java-highlighting] Fix bug about applying "Create missing branches" fix when classes don't have unique simple names
...
IDEA-278885
IJ-CR-14519
GitOrigin-RevId: 6216761ef7944c54df65e80c5103e588d295afdc
2021-11-09 14:24:41 +00:00
Andrey.Cherkasov
82a33df7b7
[java-highlighting] Fix bug about applying "Create missing switch branch" fix produces duplicated case labels
...
(IDEA-278885)
GitOrigin-RevId: b1ca1f85325847cc97c9d5a9144ccdcc9e349fcc
2021-11-09 14:24:40 +00:00
Anna Kozlova
e8cc225191
[java] add external annotations in batch when roots are configured
...
IJ-CR-16418
GitOrigin-RevId: ad4d8aef04eaa61250e7e0bc59930b8e3edfb064
2021-11-08 20:58:13 +00:00
Bas Leijdekkers
0fbbb02253
use concurrent set (IJ-CR-16597)
...
GitOrigin-RevId: 97f209d914f420ea5e07d251cb848e43bb4800cf
2021-11-08 17:00:49 +00:00
Bas Leijdekkers
c9fd62ae3e
remove assertion because it warns on safe code
...
GitOrigin-RevId: 7657d10dc0bf3f75371e583c2872660939a56f3b
2021-11-08 17:00:41 +00:00
Bas Leijdekkers
2141dc5c6a
remove redundant check (IJ-CR-16597)
...
GitOrigin-RevId: 309d60dcb8556049560e17bf3b2de81c7e75bc46
2021-11-08 17:00:37 +00:00
Ilyas Selimov
f9ed6aa342
java - wait until super methods are initialized
...
GitOrigin-RevId: 9d3c87f274c2cb6f8e5873a6b381febc7a731925
2021-11-08 11:34:26 +00:00
Tagir Valeev
93253e6727
[java-dfa] More diagnostics for EA-400256 - AE: DfGenericObjectType.<init>
...
GitOrigin-RevId: 3e879eb090c1ae3f564b684ee3b80e8c14cbeb3f
2021-11-08 05:55:09 +00:00
Tagir Valeev
f72883baf5
[java-dfa] handleTestFrameworks: check call non-nullity first
...
GitOrigin-RevId: a0f149db90a8ddfd77809086909018881df281a2
2021-11-08 05:55:01 +00:00
Bas Leijdekkers
8f46afabf7
fix race condition in RefFunctionalExpressionImpl
...
should help with occasional "Unused declaration" inspection false positives
GitOrigin-RevId: 27d2816d7b3a8089b53676b0a6d2fcb9fbc914d2
2021-11-04 23:20:16 +00:00
Bas Leijdekkers
bf472d6bb8
fix race condition in RefClass
...
will hopefully help with occasional false positive in the "Unused declaration" inspection
GitOrigin-RevId: f3acf2077cf18a4e35d9bf16d84c9f5e95df136f
2021-11-04 23:20:14 +00:00
Bas Leijdekkers
905d5752f6
minor simplification
...
GitOrigin-RevId: 530738c85b1ac81cf4cce4cba04aa8f3bf1f59eb
2021-11-03 17:23:06 +00:00