Commit Graph

44706 Commits

Author SHA1 Message Date
Vladimir Krivosheev
a67c59c561 platform.core.impl — remove dependency on intellij.platform.util.ui and intellij.platform.core.ui
java.psi.iml — remove dependency on intellij.platform.core.ui

GitOrigin-RevId: c1d4feb04c0471c7d17b5331b86738ee54a97f80
2020-09-21 13:40:47 +00:00
Vladimir Krivosheev
886fa598f1 extract netty-buffer from netty-codec-http to use it as a generic library
GitOrigin-RevId: 52d3374ddbf44dc434a3abb7fb370fb4eedabb46
2020-09-21 13:40:41 +00:00
Vladimir Krivosheev
cae1fa1275 cleanup
GitOrigin-RevId: 27233b0d9ec544c38220df4d3bdef87d79af32c8
2020-09-21 13:40:37 +00:00
Anna Kozlova
576590686d java: fix repeatable annotations check when non-annotation type is passed as value (IDEA-250935)
GitOrigin-RevId: 7f819cfa97ac8fe49e58e3dc2e4c13e42f724963
2020-09-21 13:36:34 +00:00
Vitaliy.Bibaev
f97a8f1f1a i18n: templates (fix more clients) (IDEA-249136)
GitOrigin-RevId: 01cae81ef55c95a63aa39ad3c81bc2cb792c1ba6
2020-09-21 11:26:39 +00:00
Artemiy Sartakov
1387117499 ProjectProblemsViewPropertyTest: fixed member problems extraction
GitOrigin-RevId: 2b04f66f7062cd65468e9898425b123bdf6e9fba
2020-09-21 09:49:50 +00:00
Tagir Valeev
4b657e70e5 [java-completion] IDEA-212644 Unexpected chain completion suggestions for predicate
GitOrigin-RevId: 8157d142ec05c0dd32e6b208773efbddf4248b3c
2020-09-21 09:44:55 +00:00
Tagir Valeev
a0f0dabaa4 [java-highlighting] IDEA-246748 Remove support of C-style array declaration in record components
Actually suggest a fix if somebody uses it

GitOrigin-RevId: 57ee72ebdc99ebe506a88696bf37f9319cdbcc33
2020-09-21 09:44:54 +00:00
Tagir Valeev
ea09257801 [java-highlighting] Move MoveAnnotationOnStaticMemberQualifyingTypeFix to quickfix package
GitOrigin-RevId: 4adbbf163b1c5d887371454f0f42e8ead75f8863
2020-09-21 09:44:53 +00:00
Tagir Valeev
742ad45a22 [java-dfa] Report implicit unboxing of nullable method reference argument
Fixes IDEA-250913 Inspection "Constant conditions and exceptions" does not catch "Unboxing may produce NullPointerException" in stream operations

GitOrigin-RevId: 536668db2e1b3bb5307cccff710f3212d07bce2e
2020-09-21 09:44:52 +00:00
Tagir Valeev
095fb1bd79 [java-refactoring] Cosmetic changes in MakeMethodOrClassStaticProcessor
GitOrigin-RevId: c176995cf73b98186fef0f1c7ee96c6298cbdfd8
2020-09-21 09:44:51 +00:00
Tagir Valeev
29a0d31ea5 [java-analysis] Improvement of Effects footprint
GitOrigin-RevId: 51f9c0eacde8a1302871593cbc1c30097a96c200
2020-09-21 09:44:50 +00:00
Tagir Valeev
7f14d1b7a3 [java-psi] Improvements of ControlFlow footprint
GitOrigin-RevId: d17c25677d8576e256a734beb9e34eb7a5469e0b
2020-09-21 09:44:49 +00:00
Vitaliy.Bibaev
1d01021bbf i18n: templates (fix clients) (IDEA-249136)
GitOrigin-RevId: 8834e318ac113e5a329bafdf0cde897c8d4534eb
2020-09-21 09:05:14 +00:00
Vitaliy.Bibaev
74d5dfab69 i18n: templates (IDEA-249136)
GitOrigin-RevId: b9fce3a99fcba6f5d625e46d3b1075f88d2947f7
2020-09-21 09:05:13 +00:00
Ilyas Selimov
a981618420 IDEA-246450 - naming remarks after CR
GitOrigin-RevId: d100278d803b32310f43b8e006aa4d3587c0c04e
2020-09-21 06:34:52 +00:00
Andrey.Cherkasov
e4564664ac Fix possible java.lang.ClassCastException: IDEA-244144
GitOrigin-RevId: 4da650a049001a09209e7117e5dbf07752ca08e5
2020-09-19 13:42:46 +00:00
Andrey.Cherkasov
eb5e81dcb4 SuspiciousTernaryOperatorInVarargsCallInspection created: IDEA-244144
GitOrigin-RevId: cc56e98bf46b87d1b685177a72bccfd4fc80a596
2020-09-18 23:04:15 +00:00
Nikita Eshkeev
c8ef181ea3 [java-analysis-impl] IDEA-248487 Red code after "Remove unnecessary 'throws' declarations"
The TryStatementGraph was an overkill for the job and it introduced tons of boilerplate code.

This patch replaces TryStatementGraph with TryStatementInfo which changed the myVertices map to two maps:

 - a map from PsiCatchSection to PsiTypes, which allows to quickly decide what exceptions a PsiCatchSection handles
 - a map from PsiType to PsiElements, which allows to quickly find out what places in a try statement throw a particular exception.

This solution resulted in reducing the amount of boilerplate code significantly.

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 966b37d65eaf4bb39e22dd0e9b2aea2f051200de
2020-09-18 20:02:40 +00:00
Dmitry Jemerov
209b057c97 Remove support for capturing form snapshots (IDEA-251045)
GitOrigin-RevId: dec054d182a094c51e89b868e3a3bd122c027076
2020-09-18 16:28:22 +00:00
Ilyas Selimov
8411d9763b IDEA-242041 - support class to record conversion
GitOrigin-RevId: 5bfebdff5eb73b32656c8928f490d6210d179b81
2020-09-18 12:13:56 +00:00
Peter Gromov
6da3f27fa4 remove ParameterInfoHandler.getParametersForLookup implementations (IDEA-249709, IDEA-167114)
GitOrigin-RevId: 68918c705409ddf3f2d154beb708f91a1b6f468d
2020-09-18 11:32:41 +00:00
Bas Leijdekkers
3bafcd9746 SSR: minor cleanup
GitOrigin-RevId: 69c2c7a8b01c62ca15f3480de551166f138425ea
2020-09-18 09:57:08 +00:00
Bas Leijdekkers
f441adc9d5 SSR: commenting (IDEA-CR-66769)
GitOrigin-RevId: 9926216433c7eea3dc6ad62731e533cdd44bdbe0
2020-09-18 09:57:06 +00:00
Sergey Malenkov
ea1102d246 introduce utility methods to show popup menus
GitOrigin-RevId: 06cb1c574143ccf431307e3f23366d7e8ac239b5
2020-09-18 09:46:16 +00:00
Tagir Valeev
a8053bccb9 [java-completion] ArgumentSuggester: fixes according to review IDEA-CR-66883
1. Package-private class
2. Honor codestyle
3. Avoid search for PsiElement to shortenClassReferences
4. Remove extra lambda
5. Rename presentation -> argumentPresentation
6. Use isAssignableFrom when filtering by expected type

GitOrigin-RevId: 340c1c578b2a864d1f2dbff0c70e932fba819602
2020-09-18 05:51:46 +00:00
Tagir Valeev
f9d1650fd8 [java-psi] Tolerate unparseable record component type (IDEA-250933)
GitOrigin-RevId: 813982a27750455f74d92ea48931096b389c6b37
2020-09-18 04:22:09 +00:00
Tagir Valeev
0bdc0d744a [java-highlighting] IDEA-250951 Record accessor for the record component with ellipsis type produces a red code
GitOrigin-RevId: 7d2a1ddf7686a07cd4591c4c17d758c1cb203940
2020-09-18 04:16:18 +00:00
Tagir Valeev
eac7426a2f [java-completion] Fixes according to review IDEA-CR-66916
1. Remove type text
2. Test presentation

GitOrigin-RevId: 1c9ba2600e807383cb7cbf07f552c459bb109bd4
2020-09-18 04:10:59 +00:00
Tagir Valeev
fca0f2df90 [java-psi] PsiAnnotation#getOwner: doc updated
GitOrigin-RevId: f1abc9a44129d66998c5ad8398cef14137afb181
2020-09-18 03:53:36 +00:00
Tagir Valeev
d96b7be3fa [java-psi] Optimize ControlFlow footprint in the cache
1. Pack start/end offsets into single map
2. Deduplicate read/write variable instructions
3. Export to a more compact object

GitOrigin-RevId: a3884436814a53638a08deec8d78404fb2614b66
2020-09-18 03:53:35 +00:00
Nikita Eshkeev
d376f37023 [java-analysis-impl] IDEA-248487 Red code after "Remove unnecessary 'throws' declarations"
Follow-up commit that fixes minor flaws

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 751efb37a200b68756b3832065ad2be27812b1f4
2020-09-17 18:24:02 +00:00
Nikita Eshkeev
8583627c45 [java-analysis-impl] IDEA-248487 Red code after "Remove unnecessary 'throws' declarations"
The algorithm of deducing of how catch type and instructions in a try statement are related didn't use to be robust, this patch introduces a graph based approach to capture the essence of catch types and instructions in a try statement relation.

The graph is a DAG with catch sections on the top level, they are connected to exceptions vertices: since a catch section can have a disjoint set of types in its declaration, each catch section vertex can have a multiple children. At the lowest level there are instructions of a try statement that induce exceptions. Such a structure of a graph makes it possible to implement a robust algorithm to deduce essential types in catch sections.

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 8cd2a8223ff0b472d8dfde3e611b4797edb36d5a
2020-09-17 16:27:25 +00:00
Anna Kozlova
90cf821942 java shebang: detect if shebang comment is attached to class
GitOrigin-RevId: 2aaafae7a1d91078249d9e7ad83f993abf58e51c
2020-09-17 16:18:45 +00:00
Mikhail Sokolov
67bba90817 fix SearchEverywhereTest
GitOrigin-RevId: 8faed6b5a68a2d21ffd0b27c5439bb6cba4ddf72
2020-09-17 15:32:36 +00:00
igor.kulakov
d8b2362815 inspection description update
GitOrigin-RevId: 7f7c92dc533d271b1cf8a6a14373abb23fe04bb6
2020-09-17 12:02:23 +00:00
Roman Shevchenko
aef48d77c6 Cleanup (dropping unnecessary test-only method)
GitOrigin-RevId: af31d4cf7a1606e88866ebfd1ebfc97839033a3a
2020-09-17 11:37:58 +00:00
Tagir Valeev
d7cb344879 [java-debugger] Do not localize stack traces
Stack traces should look like normal Java stack traces to avoid visual discrepancy. Also, it's good to keep them machine-readable.

GitOrigin-RevId: 162e7ad5599462e413525aa608d4d32d6a681164
2020-09-17 11:01:13 +00:00
Tagir Valeev
6192066309 [java-completion] IDEA-249029 Code completion for type cast
GitOrigin-RevId: bd8b32e13a24d94d98d07f9242d271229bc74539
2020-09-17 11:01:11 +00:00
Alexey Kudravtsev
687bb5ff46 perform refresh when failed to find external jdkAnnotations by findFileByPath() etc to fix EA-221110 (plugin) - assert: JavaSdkImpl.attachIDEAAnnotationsToJdk
GitOrigin-RevId: efa4afdb9f7172e27ff7fff0c1ff3c0da8d41e87
2020-09-17 10:18:05 +00:00
Tagir Valeev
ac73c2fded [java-psi] PsiAnnotationImpl.getOwner: add a comment
Review ID: IJ-CR-2965

GitOrigin-RevId: e0c05613f14c6550742cd73457ec8e7194cb593a
2020-09-17 03:11:47 +00:00
Viktor Shatrov
fcf02f6f33 Inline debugger: add mouse listeners
- added mouseMove handler
- create popup onclick

GitOrigin-RevId: cf5a45697d2b8a1af4d836a156fb68c7ee837829
2020-09-16 20:53:51 +00:00
Dmitry Batkovich
18a2e68261 index: fix indexing state (after file was indexed with shared index sub indexer is cleared)
GitOrigin-RevId: ac41c6c83d4a118db1dc4a6a86e73bf2b1825911
2020-09-16 15:45:56 +00:00
Nikolay Chashnikov
c24bd6ed30 [test framework] support loading project from files combined from multiple test data directories
GitOrigin-RevId: 7b048395d6c5ece9b47968d0eb68b783f8a9b911
2020-09-16 12:34:07 +00:00
Andrey.Cherkasov
50af51d8d1 Support the case when then array initializer is taken into parentheses; more attention to comments in fix: IDEA-238645
GitOrigin-RevId: d4557daa9b37e9f103b6453d9e0ad3a18df0a870
2020-09-16 12:30:36 +00:00
Tagir Valeev
5a3156abc4 [java-completion] IDEA-212637 String.toUpperCase/toLowerCase: suggest using Locale parameter in code completion
MethodMergingMinimalTail is updated, as now additional completion option is available

GitOrigin-RevId: 290bdaf0e7aea3c2b676de052e118b7d08d0c525
2020-09-16 07:58:23 +00:00
Artemiy Sartakov
b65eec5242 Problems view: type parameters support (IDEA-249578)
GitOrigin-RevId: 0f09fd6772df0ed673ba5de53a8d5437fa2c49a7
2020-09-16 07:20:12 +00:00
Nikita Eshkeev
f5d6a834df [i18n] Fix esc symbol
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 1dfe2f4fbdbbdc9337570413122487fedf6f089e
2020-09-16 05:12:51 +00:00
Andrey.Cherkasov
d6ecf8f1f0 Fixes after review: IDEA-249165
GitOrigin-RevId: 5f90b50bd298dbc73283a6b2e78267483211c111
2020-09-15 21:23:00 +00:00
Nikita Skvortsov
080fab5957 [gradle] better fix for IDEA-245377
Track module name change as a modified state of a module editor

GitOrigin-RevId: 369ec6ed2a68ceb85055bc954e4eef929821bb42
2020-09-15 12:57:58 +00:00