Commit Graph

22647 Commits

Author SHA1 Message Date
Yuriy Artamonov
1da8465556 [java] IDEA-365068 FUS: Java Exception file template logged as third.party in statistic events
(cherry picked from commit a1c205f3d5fbabec1b606c82fa33aa1c5d12ef66)
IJ-CR-152109

GitOrigin-RevId: 5cd6886bd3ed3e3fcb033947b07039d93b8214e9
2024-12-24 14:28:54 +00:00
Tagir Valeev
b6fd54065e [java-completion] Resolve annotations inherited from any instance of java.lang.Annotation
If the project has 2+ JDKs, it's possible that we want to use an annotation from another module, which uses another JDK, so we won't be able to find it if we search inheritors of java.lang.Annotation defined in our JDK only
Fixes IDEA-362050 Annotation auto-complete is broken for some classes from other modules


(cherry picked from commit 3133dce302d9dfd03e169678c00fb4d0e23dd50b)

IJ-CR-151470

GitOrigin-RevId: 9f67471bcb07f2da5717414466832c5630414fd2
2024-12-18 15:19:13 +00:00
Tagir Valeev
071179ffed [java-intentions] IDEA-363624 Create Class generates invalid and redundant annotation @NotNull @NotNull for constructor parameter
(cherry picked from commit 9c3c9c55517369e6715c65a9696c287514261a10)

IJ-CR-151031

GitOrigin-RevId: 8306c8925395abd7dcee24de847335e4e9b1f535
2024-12-09 10:58:58 +00:00
Yuriy Artamonov
1f5c4b9204 [fus] IJPL-172537 Count plugin API usage
(cherry picked from commit 9efd1832da8119adbe16a935d4e7ed9a1da290d0)

IJ-CR-150399

GitOrigin-RevId: ea557c9635f5cc447efa8fa87c6fd808b7cb8f60
2024-11-29 18:21:42 +00:00
Louis Vignier
c830b530a1 [jdk] Add SdkConfigurationUtil#createIncompleteSDK
This makes it possible to get an incomplete JDK in the new project wizard for detected JDKs, and initiate JDK paths setup in the background.

#IDEA-363220 Fixed
#IDEA-358703 Fixed

(cherry picked from commit 4b62235b1243df8d2bc8ff24bb7932ee954c7633)

GitOrigin-RevId: 130c333fd60ff654d550a5db1bf232de9c3adec0
2024-11-23 11:15:06 +00:00
Tagir Valeev
32684d7e9f [java-intentions] Create method from usage should skip external type annotation
Fixes (finally) IDEA-360115 Create method from List.of results in long jetbrains NotNull annotation


(cherry picked from commit 8e1657ad1d3af686e50c048eea1f7c439ec7365b)

IJ-CR-149633

GitOrigin-RevId: 1c86e8a1b9b0d5902f095ca7393bef8e2dea66d9
2024-11-19 14:11:05 +00:00
Mikhail Pyltsin
bf7c8f67cb [java-generator] IDEA-363289 generate text from type directly, non-replace if the type is different
(cherry picked from commit 125504d8af961ab0289182714ebed35d09f0508c)

IJ-CR-149472

GitOrigin-RevId: 18f0e9a16d80a96627ee03a82ee81f2f3b526603
2024-11-18 21:11:25 +00:00
Yuriy Artamonov
26acc4328e [java] IJPL-171431 Plugin language file types are missing in File > New menu in source roots
(cherry picked from commit 83dd013fbbbbfcd245e65dc5ffd1570711b3c75b)

IJ-CR-149353

GitOrigin-RevId: f050bf779e4f0ea28a77cef2eac42c55d65f1696
2024-11-15 12:50:36 +00:00
Yuriy Artamonov
0ad7df3289 [editor] IJPL-164140 Floating code toolbar is not configurable for JSON, XML, YAML and SQL files
(cherry picked from commit 9d3a74bf1433284ed0fb7e6e2b554926966110e7)
IJ-CR-148640

GitOrigin-RevId: 3c215330677d9e7730aaa04fbdd9fcffdbf3d7ba
2024-11-07 20:33:37 +00:00
Andrei Iurko
efbebbef0b [qodana] QD-9891 Add reviewed inspections categories and fix json schema validation
GitOrigin-RevId: 7ca2b2fde31a47b41b1940badee13d931bd91102
2024-11-06 14:28:05 +00:00
Bart van Helvert
0d340909ff [fus] Update library usage statistics for constraint solvers
Adds FUS checker for OR-tools Choco solver, Timefold, Gurobi and CPlex. #IDEA-360703


(cherry picked from commit ea7fda8cf7492db0abf5b8e945e000611156dfda)

IJ-CR-148348

GitOrigin-RevId: 7a9089b785dca16689fd9344078568541e6de4e5
2024-11-05 00:09:58 +00:00
Bart van Helvert
2a8c21060a [fus] Update library usage statistics for ML
Adds Tensorflow, Deep Java library and Deeplearning4j. #IDEA-360703


(cherry picked from commit 2ee1575e9b9253380dec056827cd122b426fa0f1)

IJ-CR-148348

GitOrigin-RevId: ab4cde34bac06c7f01ac2036fa27f830e2378564
2024-11-05 00:09:58 +00:00
Bart van Helvert
6d4b19b371 [fus] Merge pulsar client and admin
(cherry picked from commit da026bdfd0840a80e7bf71fd4242f9fc02df58d8)

IJ-CR-148348

GitOrigin-RevId: 382f969e81dabfef9587f33721c59114044eb90d
2024-11-05 00:09:58 +00:00
Bart van Helvert
e2b2e6370b [fus] Fix root should be class
(cherry picked from commit a225c3c102f594b9528df489c6117bed5b616234)

IJ-CR-148348

GitOrigin-RevId: 4abf950a0d4c7caa8a6daef3272d1e391f91e434
2024-11-05 00:09:58 +00:00
Bart van Helvert
f720c1fbea [fus] Update library usage statistics for LLM
Adds LangChain4j. #IDEA-360703


(cherry picked from commit 95a444349d7710cbb2b6f8427c72478e1957fb20)

IJ-CR-148348

GitOrigin-RevId: 7a7d9606ec53cae384f75eaf155dcbf2299ebe77
2024-11-05 00:09:58 +00:00
Bart van Helvert
4bab932a51 [fus] Update library usage statistics for messaging
Adds Pulsar. #IDEA-360703


(cherry picked from commit 1d6586290e0e0cc050881ef359f9019d20169f6b)

IJ-CR-148348

GitOrigin-RevId: 166c456fc53f1159361be79956c02175d6ebfc55
2024-11-05 00:09:58 +00:00
Bart van Helvert
caf1f6ea87 [fus] Update library usage statistics for databases
Adds FUS checker for Postgres, Oracle, Microsoft SQL, H2, SQLite, MySQL, Snowflake, Elastic search, MongoDB, Cassandra and MariaDB. #IDEA-360703


(cherry picked from commit 093f095a055ce2d5571603203920f1b889678d20)

IJ-CR-148348

GitOrigin-RevId: 73f4211cd9b194ce05152cf0f88015e7dea56cef
2024-11-05 00:09:58 +00:00
Bart van Helvert
d1aa1c5c1c [fus] Update library usage statistics for caching
Adds FUS checker for Jedis. #IDEA-360703


(cherry picked from commit 9f15078bb3de5899277138e1e4084eb01f07d5fe)

IJ-CR-148348

GitOrigin-RevId: 0ba4302900482fdf38fcf98a01ad5ec493b45da0
2024-11-05 00:09:58 +00:00
Bart van Helvert
c08cc6ef0f [fus] Update library usage statistics for database access
Adds FUS checker for JDBC and Apache Torque. #IDEA-360703


(cherry picked from commit c037be615b2aba230fa8f254bf5526e8a9508cd3)

IJ-CR-148348

GitOrigin-RevId: aa59a60bd7adde67aca11f41aa30ababe24ff164
2024-11-05 00:09:58 +00:00
Bart van Helvert
208e6c32fe [fus] Update library usage statistics for assertions
Adds FUS checker for hamcrest, assertj and truth. #IDEA-360703


(cherry picked from commit 4cffaf737103bb6c5c7e824fd1d061e68d85336f)

IJ-CR-148348

GitOrigin-RevId: 475629cc3846b6da7ee6d798ffcf4c855343c01a
2024-11-05 00:09:58 +00:00
Bart van Helvert
943886cfd9 [fus] Update library usage statistics for bean mapping
Adds FUS checker for dozer and modelmapper


(cherry picked from commit 82bc89cc2da975a38595f98e6f62efbf405784c8)

IJ-CR-148348

GitOrigin-RevId: 78dbb09360866b086d1e01105d3db7d9454098ef
2024-11-05 00:09:57 +00:00
Bart van Helvert
f80bc533a1 [fus] Update library usage statistics for logging
Adds FUS checker for log4j, sl4j, logback and kotlin logging.


(cherry picked from commit 89e1618427c628289d4e8c8428006548c2fc789a)

IJ-CR-148348

GitOrigin-RevId: adc00f8e01152ec5ff05e4795482cb9d05d6f40c
2024-11-05 00:09:57 +00:00
Mikhail Pyltsin
21b790bb3f [java-inspections] IDEA-360755 Convert to enhanced switch erases the default value
(cherry picked from commit 7562bb688c2bf6e93bab7537113bb54246949006)

IJ-CR-147994

GitOrigin-RevId: 07dc28c498da2f45ccf2dd0d88c9f603ddfb46b1
2024-10-30 20:48:51 +00:00
Bart van Helvert
0f74789d52 [fus] Update library usage statistics for dependency injection
Adds FUS for dagger. #IDEA-360703 Fixed


(cherry picked from commit dfce95bbcb3ce00bc353caedbbb0a2a4583fee57)

IJ-MR-146809

GitOrigin-RevId: 09bc0b84f15a5ae6d809653f71ada136ab574174
2024-10-16 10:14:36 +00:00
Bart van Helvert
d43488a9fd [fus] Update library usage statistics for static analysis
Adds FUS for checker framework, spot bugs, jsr305 (javax-annotations) and errorprone. #IDEA-360703


(cherry picked from commit b6f80d6a558ae66ebc5fd20aea31d46470a3ff1c)

IJ-MR-146809

GitOrigin-RevId: 723cc7c42425705139f2d4f815c3f956c87055b2
2024-10-16 10:14:36 +00:00
Bart van Helvert
9b5058cdc9 [fus] Update library usage statistics for test frameworks
Adds FUS for JUnit 3. #IDEA-360703


(cherry picked from commit 6fb551f81c7556dcf7161317f99191a5707fe4d7)

IJ-MR-146809

GitOrigin-RevId: cda5bc62f7f570e7716a38dfdf7077b25ded0c33
2024-10-16 10:14:36 +00:00
Bart van Helvert
4d4bae9f9f [fus] Update library usage statistics for utils
Adds FUS for guava, fastutil and apache-commons-lang3. #IDEA-360703


(cherry picked from commit ad1c79d359ffc2c1bb9feb8d8a6a6b9b280eb07e)

IJ-MR-146809

GitOrigin-RevId: b85bc4b039038867d42dd323c1b6a16eaed717a9
2024-10-16 10:14:36 +00:00
Bart van Helvert
661e3599d4 [fus] Update library usage statistics for JSON
Adds FUS for fastjson2. #IDEA-360703


(cherry picked from commit d802b85905a0ff21b0894a1b4ee9fd3ce012ebdf)

IJ-MR-146809

GitOrigin-RevId: 5de9a10e471025a030779fd9829235ea5d12d1fb
2024-10-16 10:14:36 +00:00
Alexander Kuznetsov
ceb1835d62 [debugger] IDEA-349254 Add platform part statistics
- visualizer shown
- visualizer closed (with some causes)

GitOrigin-RevId: 8dc3b3172c20a191f065d293d0f2e6cb76dbbcef
2024-10-14 23:57:32 +00:00
Alexander Kuznetsov
7d22b2f36b [debugger] IDEA-349254 Initial support for collections
Done:
- datagrid view (pagination, sorting, filtering)
- support for all inheritors of java.util.List
- the first element of the collection specifies the columns (if other elements don't have a field, the cell is empty)

To be done:
- tests
- support more types
- variables view on click (may result in producing nested sub-views)
- maybe include a variable name in the title

GitOrigin-RevId: 41ddf8cc16a9aae6aafc671ce1897584d198a6aa
2024-10-14 17:27:11 +00:00
Alexey Kudravtsev
6bea9cfe04 optimization: do not iterate all range markers in the document, use the visible area only (part of IJPL-162151 Scrolling is slow)
GitOrigin-RevId: e0fbaf8757364a3ad0e823facee0def50cd7f49c
2024-10-14 15:40:08 +00:00
Tagir Valeev
3817a2f829 [java-inspections] TrivialFunctionalExpressionUsageInspection: remove outcommented code
GitOrigin-RevId: 8cc4747e0fe05108a7f2f30fd56e2c422d2c1c6d
2024-10-14 15:13:57 +00:00
Andrei Iurko
4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Tagir Valeev
1ccf20b530 [java] Add DumbAware
GitOrigin-RevId: 4ebc0163803196b0d27e6944839630478daff25e
2024-10-11 08:10:27 +00:00
Vladimir Dolzhenko
64e6daa2b6 [kotlin] Port Create Test intention to K2
#KTIJ-30467
#KTIJ-9787

GitOrigin-RevId: efb5d9d40646aeb861548eb4d4def625192f5900
2024-10-10 17:42:35 +00:00
Ilya Kirillov
0fa8750fb8 Revert "optimization: do not iterate all range markers in the document, use the visible area only (part of IJPL-162151 Scrolling is slow)"
This reverts commit 4353aab31f4af5e3c50662669f94b823b01d3031.

- It causes a deadlock in kotlin tests: IJPL-163726
- It breaks some remote dev and code with me tests: IJPL-163871

IJPL-162151

GitOrigin-RevId: d0764a892d03104c58f8601cfbea7b35a95c71fb
2024-10-10 16:11:03 +00:00
Louis Vignier
e2f88c73c2 [javadoc] perform automatic supertype search recursively for interfaces
#IDEA-358073

GitOrigin-RevId: efeda57e732374963dd97dbe32c8fc1d938c5916
2024-10-10 11:30:59 +00:00
Maxim.Kolmakov
e3d0d48018 Extract threadDump parser to a separate module
GitOrigin-RevId: c9d9890c5bf10e57b0aa77bb8f5c9ca7451c723e
2024-10-10 00:58:31 +00:00
Mikhail Pyltsin
e729bc10c8 IJ-CR-146190 [java-inspections] IDEA-360134 Support %n in format string
- support escape symbols

GitOrigin-RevId: 46d46c58b5a43d4aed1c1549326035b0bc32161e
2024-10-09 11:22:00 +00:00
Mikhail Pyltsin
1abfdf167e IJ-CR-146191 [java-inspections] IDEA-360135 Non-constant string concatenation in logging call could be triggered with exception argument
- fix condition

GitOrigin-RevId: 6a86107293990807d48c44fe49f9ead109cb1131
2024-10-09 11:22:00 +00:00
Aleksey Dobrynin
9aac209c72 [properties, inspection, fix] non-ISO 8859-1 characters for java 1.8 and below IDEA-360007
GitOrigin-RevId: 7a45cac5966b251a5db6759c16f3709392c5a3fc
2024-10-09 10:36:06 +00:00
Mikhail Pyltsin
52fe84a033 [java-inspections] IDEA-360291 'Make method constructor' fix shouldn't be shown for implicit classes
GitOrigin-RevId: ba571565430db01d06d37f2da5ab49a97b466db4
2024-10-08 14:02:23 +00:00
Mikhail Pyltsin
4de70108ea IJ-CR-145218 [java-inspections] IDEA-201932 Provide inspection to highlight redundant creation operations in java date time api
- use unused highlighting

GitOrigin-RevId: 0dcda94c148646871ff0238beb3075e5f4963713
2024-10-08 14:02:23 +00:00
Tagir Valeev
55dbb1796d [java-analysis] Do not apply NotNullByDefault on casts
GitOrigin-RevId: bbc4e5e06af8ed86d8f0908d6090362d54737af7
2024-10-08 13:30:02 +00:00
Bas Leijdekkers
00eb168de9 Java: safe delete cleanup
GitOrigin-RevId: 6a92cc62db80835c7cad04dfcb6fde32d776dcb8
2024-10-07 17:17:27 +00:00
Mikhail Pyltsin
81fe531f88 [java-inspections] IDEA-360134 Support %n in format string
GitOrigin-RevId: c7d3b60eec4a72ded2132a3ab24e035baf2c1241
2024-10-07 13:08:21 +00:00
Mikhail Pyltsin
77ec6df673 [java-inspections] IDEA-360135 Non-constant string concatenation in logging call could be triggered with exception argument
GitOrigin-RevId: b9a08671660f1a3cb27e566e1a9ed6a05cd211d4
2024-10-07 13:08:20 +00:00
Mikhail Pyltsin
be1f7ce80b [java-inspections] EA-1125435 check if return value is valid
GitOrigin-RevId: 1610de692c70c28e4361d7d43db518f0689d1c74
2024-10-07 11:24:09 +00:00
Yuriy Artamonov
b79a859047 [java] IDEA-352641 File - New contains many irrelevant templates for Java source sets
GitOrigin-RevId: bd18866f6d60839fa9474c7071aca2761989986e
2024-10-06 17:03:10 +00:00
Max Medvedev
e19c201a41 don't try getting prevSibling of PsiFile
prevSibling of a file is another file which is never useful here

GitOrigin-RevId: 31702cc1f0d6dd980ced79d6382beb3277811eb5
2024-10-06 11:17:51 +00:00