Tagir Valeev
838cf2d73c
[java-incomplete-model] Assume that any unresolved class-type is assignable to java.lang.Object
...
Partially improves inference in incomplete mode
GitOrigin-RevId: 1d9c7c75afd524ea02980be8f96c19fba1eaaf54
2024-06-25 13:54:11 +00:00
Tagir Valeev
a8788fa3b8
[java-highlighting] Do not try to resolve star-import if existing explicit import fails to resolve
...
Otherwise, wrong class may be resolved in incomplete project model
AnonymousHashCode.java changed, because java.lang.Object import was unresolved (no JDK configured) and we now refuse to resolve to same-package class if there's a suitable explicit import
beforeHierarchy.java/afterHierarchy.java changed, because the import was incorrect, and it prevented importing implicit java.lang.Exception
predicates2.java changed: incorrect import removed (now prevents importing java.lang.String)
MoveInnerProcessor changes: import refs should be rebound first; otherwise they disallow to rebind normal refs
SpringDataMongoDbQueryCompletionTest changed: erroneous import removed
GitOrigin-RevId: f380409c445306bb9b8aceb5fe4dce1351511283
2024-06-04 20:27:13 +00:00
Tagir Valeev
86d9d3a43e
[java-refactoring] TypeMigration: migration rules for optional
...
GitOrigin-RevId: 5f7c1413476c7aea1b6282e86426e7ccf414c94b
2024-02-02 10:29:22 +00:00
Tagir Valeev
4e8623cb77
[java-refactoring] TypeMigrationTest: update to use latest JDK; cleanup and partially fix implementation
...
Tests T49 and T50 do not work with graph inference resolver. It looks like, the resolver was selected based on the JDK version, so updating JDK caused problems. For now, the problem is not solved.
GitOrigin-RevId: accb3a90954bdcb0d07953b9266216395a788855
2024-02-02 10:29:14 +00:00
Georgii Ustinov
cbdda56f99
IDEA-332957 GuavaInspection false positive review refactor
...
GitOrigin-RevId: 32b819439b341b8b3170ae304304c339cfc9e753
2023-10-12 08:57:53 +00:00
Georgii Ustinov
7520f2516c
Guava inspection predicate false positive #IDEA-332957 fixed
...
GitOrigin-RevId: aa2b1ab1baa9d97b42bb359eac5f30efd3f47ddb
2023-10-10 16:12:28 +00:00
Bas Leijdekkers
78776e0ef8
Java Type Migration: care about precedence when casting and improve long literals (IJ-CR-107436)
...
GitOrigin-RevId: e4288f6aaf2c322b981f2eedfdd940abf7eb1c72
2023-06-06 10:01:07 +00:00
Bas Leijdekkers
bd06356746
Java Type Migration: fix boolean negation handling when converting to ThreadLocal (IJ-CR-107436)
...
GitOrigin-RevId: b543a7555da0229579b7512583e3cf306ffff6b7
2023-06-06 10:01:06 +00:00
Bas Leijdekkers
6a32849d22
Java Type Migration: avoid primitive wrapper when not necessary when converting to ThreadLocal (IJ-CR-107436)
...
GitOrigin-RevId: 6ec0ceecf3f84dbfc2a811c734f69ad956e774db
2023-06-06 10:01:05 +00:00
Bas Leijdekkers
e91500e822
Java: add cast when necessary in more places (IJ-CR-107436, IDEA-248610)
...
GitOrigin-RevId: 97431697ea4a59bb68a0d2309ad70d6bfe6e674f
2023-05-16 19:32:05 +00:00
Bas Leijdekkers
ee809ff4ba
Java Type Migration: fix non-vararg call issue when migrating from vararg to array (IDEA-319141)
...
GitOrigin-RevId: 6df569696aad7c19f7f3226588124d585340dc5e
2023-05-04 10:20:21 +00:00
Bas Leijdekkers
087e06f05e
Java Type Migration: do not propagate type changes when migrating to void (IDEA-159958)
...
GitOrigin-RevId: 39568be1be3f92b456b29b33086f85bbf6fa9878
2023-05-02 18:33:59 +00:00
Bas Leijdekkers
d6f1e6346b
Java Type Migration: remove @return from JavaDoc when migrating to void (IDEA-159956)
...
GitOrigin-RevId: ec0c9d1c145df152c30bee4ad23191d1729c0641
2023-05-02 18:33:54 +00:00
Bas Leijdekkers
7abf301ded
Java Type Migration: do not propagate migration to void (IDEA-159959)
...
GitOrigin-RevId: c32b7bbf7c7363844163089d0b19e81c89273ca2
2023-05-02 18:33:49 +00:00
Bas Leijdekkers
14390e675a
Java Type Migration: avoid NPE when migrating enum type to something else (IDEA-225806)
...
GitOrigin-RevId: d71d68d9395c93d6346a247c7f207ae840e2fbad
2023-05-02 18:33:44 +00:00
Bas Leijdekkers
b856d0e423
Java Type Migration: support migrating from vararg to array type (IDEA-319141)
...
GitOrigin-RevId: 9eaf8b08ee75b816d90d4db76d3ee1e449e4d78c
2023-05-02 18:33:40 +00:00
Bas Leijdekkers
ed57b73a51
Java Type Migration: more advanced migration from non-array to array type and back (IDEA-319141)
...
GitOrigin-RevId: 78bb2d3f9ad9c26fbc65a79b23a896904ebd3523
2023-05-02 18:33:35 +00:00
Bas Leijdekkers
b716479a1c
Java Type Migration: array -> vararg without problems (IDEA-319047)
...
GitOrigin-RevId: 0cc655e40ed1d6a74b79a56805389c72202f03b3
2023-04-27 10:21:54 +00:00
Bas Leijdekkers
8144ef9257
Java Type Migration: don't modify array creation when not needed (IDEA-319042)
...
GitOrigin-RevId: 495ce8f8abab0e57270492b64fe50a5a99382bd7
2023-04-27 10:21:53 +00:00
Bas Leijdekkers
63d0902a7f
Java Type Migration: cleanup ThreadLocal conversion rule
...
GitOrigin-RevId: adb428623016a092b83a932ed66445fbd8400b27
2023-03-08 00:32:52 +00:00
Bas Leijdekkers
93a9db98dc
Java Type Migration: add cast if necessary when converting to ThreadLocal (IDEA-248610)
...
GitOrigin-RevId: 15b83a4b1281356a007783e13d8a50e44870e6cf
2023-03-08 00:32:38 +00:00
Bas Leijdekkers
5b120de0b7
Java Type Migration: Fix "Convert to ThreadLocal" with subtypes (IDEA-230719)
...
GitOrigin-RevId: cfcfabbd08f1774900f15089d6fcf651756d743f
2023-03-08 00:32:24 +00:00
Bas Leijdekkers
a0e8b31187
Java Type Migration: warn on enum constant when the argument type can't be converted (IDEA-314701)
...
GitOrigin-RevId: c5f8a21262476077e456f6bf99c05622ba8c0006
2023-03-04 21:33:20 +00:00
Bas Leijdekkers
19cf134f75
Java Type Migration: sensible error message for failed vararg to non-vararg conversion (IDEA-314700)
...
GitOrigin-RevId: f7d1722c5a852fc130b1fb55eea6b5a3aaf65ec4
2023-03-04 21:33:17 +00:00
Bas Leijdekkers
570c1709b8
Java Type Migration: handle vararg parameters better (IDEA-310441)
...
GitOrigin-RevId: 9118f5554a59d78b38833e87cc8fb8c3b547fcbe
2023-03-01 18:05:52 +00:00
Bas Leijdekkers
92757b3b04
Java Type Migration: add warning for inconvertible foreach iterated value type
...
GitOrigin-RevId: eb2c676b7d13551a77a2ece84b235b9f0137646d
2023-03-01 18:05:49 +00:00
Bas Leijdekkers
d40c54bbd2
Java: do not change too much on migrating expression type used in compound string assignment (IDEA-310441)
...
GitOrigin-RevId: d0c2bb8d47427f266c1b87c36bccb8e500dea366
2023-03-01 18:05:46 +00:00
Bas Leijdekkers
886c37df33
Java: fix converting multi-dimensional arrays to atomic
...
GitOrigin-RevId: 43a811d589e04404cfe717e2b79e254be369ea23
2023-02-25 12:41:18 +00:00
Bas Leijdekkers
45ad12ce38
Java: fix preview for array and generic types (IJ-CR-103536)
...
for "Convert to atomic" intention
GitOrigin-RevId: 52390e868b0551dc61f8892b303b10350c28305c
2023-02-25 12:41:03 +00:00
Bart van Helvert
82cf6842e7
[java] IDEA-312735 Fix polymorphic atomic type conversion
...
GitOrigin-RevId: 0cf3f6f14e273dc3d6fa7dcc8faad1e87d445be1
2023-02-09 19:37:48 +00:00
Bas Leijdekkers
1726e20764
Java: fix preview for non-primitive atomic reference
...
GitOrigin-RevId: bcfe283b900891064df3cde49371277bbadb270a
2023-02-05 14:06:24 +00:00
Bas Leijdekkers
05cebdcfb2
convert to threadlocal: fix conversion of variable initialized with binary expression/reference (IDEA-249228)
...
GitOrigin-RevId: af0110361a26f7b6245cf8f0e84b22970b5b7153
2022-09-21 22:06:22 +00:00
Bas Leijdekkers
8741f42d2d
guava type migration: fix predicate method reference
...
GitOrigin-RevId: b1a33cbbc9b315b7d91bbbc46752b102ef463751
2022-09-21 22:06:19 +00:00
Bas Leijdekkers
6fbf89c541
guava type migration: add a couple of tests
...
GitOrigin-RevId: 9b6ee6f1e29e4e6ea4d778b393e3706c24ffd588
2022-09-21 22:06:16 +00:00
Bas Leijdekkers
21efb594a8
guava type migration: avoid unnecessary method reference indirection
...
GitOrigin-RevId: deb278bd8fc3d071ffb0d56c3e2bfeb50175a076
2022-09-21 22:06:09 +00:00
Bart van Helvert
9e4e9469d4
[java] IDEA-297284 Convert MigrateAssertToMatcherAssert inspection to UAST
...
GitOrigin-RevId: a8f748f607798b4fda2c1df761d559bd9df9bf56
2022-07-05 20:57:42 +00:00
Alexey Kudravtsev
244c35add9
fix test data after fixing the JavaElementVisitor
...
GitOrigin-RevId: 12c6a5d99b8107e27756c28750660609f55c77e5
2022-06-14 00:24:14 +00:00
Bas Leijdekkers
a300d18b65
Better migration intention names
...
GitOrigin-RevId: aa0f0cbdd2437920fc1f3417f689f6f61906f10a
2022-04-12 22:39:13 +00:00
Anna Kozlova
74dbddac9c
[java] type migration: migrate constructor arguments (IDEA-280667)
...
GitOrigin-RevId: b5857edb9171eb2c780986798bf9577ebddb8d54
2021-10-19 15:26:29 +00:00
Anna Kozlova
a03762b5eb
java: convert to atomic: workaround for AtomicBoolean api (IDEA-268471)
...
GitOrigin-RevId: e5476aeac6558b3ce43cb9039673af88cf06a2dc
2021-05-04 07:37:53 +00:00
Bas Leijdekkers
593335e7cb
fix small "Assertion expression can be replaced with 'assertThat' method call" issues (IDEA-266961)
...
now called "JUnit assertion can be 'assertThat()' call"
GitOrigin-RevId: 00ec866f2ffcaf1d3b9453b2ad6edf879a2aab20
2021-04-16 20:13:49 +03:00
Anna Kozlova
215925c382
type migration: support negative values (IDEA-225992)
...
GitOrigin-RevId: 873e97c4c01f6213a076c83ffa52945523a2df4e
2020-11-17 13:53:49 +00:00
Anna Kozlova
316d1a9875
atomic migration: wrap with new when initializer doesn't refer to migrated code (IDEA-246579)
...
GitOrigin-RevId: 3c4d1372c4d17ec41702e58a5517ff31ff0ec60f
2020-07-27 10:37:20 +00:00
Anna Kozlova
47714a1258
guava type migration: prevent SOE (IDEA-179780)
...
GitOrigin-RevId: 547a2f1c2efe2421c6bed9a3abc90cd1ea049f64
2020-07-03 21:02:28 +00:00
Anna Kozlova
af13bac807
assertTrue -> assertThat: disable if only hamcrest is available (IDEA-216871)
...
GitOrigin-RevId: c43a125187a050a4c662ba9e4e0e54e3820fb71e
2020-03-19 21:41:24 +00:00
Dmitry Batkovich
31f8ace2b7
convert to atomic/thread-local intentions: fix migrated value assignment conversion IDEA-194426
2018-07-05 16:51:07 +03:00
Tagir Valeev
022c68055a
Fix Type Migration & XSLT testdata after 43b86a988 (IDEA-CR-30155)
2018-03-04 12:14:07 +07:00
Bas Leijdekkers
97d1c7eb49
SSR: ignore parentheses if possible & care for them if not (IDEA-185614)
2018-01-30 13:12:02 +01:00
Bas Leijdekkers
4fcc62681b
fix test data
2017-10-22 19:42:00 +02:00
Bas Leijdekkers
9f1766876d
SSR: set loose matching to true by default
2017-10-15 11:40:58 +02:00