Bas Leijdekkers
291bb89726
Java:Highlight "Recursive constructor invocation" error on the constructor call (IDEA-356563)
...
GitOrigin-RevId: ec04cb0aa5b234ea9814d78400c83fa70e6bd29b
2024-07-19 20:23:55 +00:00
Mikhail Pyltsin
b0c458cfac
[java-highlighting] IJ-CR-140387 IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
- support constants, fix test
GitOrigin-RevId: 9f00f2d2a896af54e15e1ea72d35a473fddf18b8
2024-07-19 19:51:57 +00:00
Mikhail Pyltsin
01b39de56a
[java-highlighting] IJ-CR-140387 IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
- support constants
GitOrigin-RevId: ff51020da5086de2e59439647588e8b5c4ba4c85
2024-07-19 11:56:23 +00:00
Mikhail Pyltsin
0b30038602
[java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00
Mikhail Pyltsin
eee416a4e8
[java] IDEA-355777 Support implicit imports
...
- Support implicitly imported modules
GitOrigin-RevId: dbf10158847f652936c405a1ad20ce4dd04dbba7
2024-07-17 18:18:57 +00:00
Tagir Valeev
2c766e6df0
[java-inspections] TrivialFunctionalExpressionUsage: do not report for any parent statement
...
Also: report any lambda inside parent return statement
Fixes IDEA-356003 Method call should not be simplified
GitOrigin-RevId: cb39dd33d27ba402a503707daffcc831ab59b49e
2024-07-16 16:41:55 +00:00
Tagir Valeev
5778a45943
[java-inspections] FunctionalExpressionCanBeFolded: disable if qualifier subtype overrides default methods of function
...
Fixes IDEA-310524 "Method reference can be replaced with qualifier changes" suggestion changes behavior in unwanted ways. (Spring Security)
GitOrigin-RevId: f927ab534894188fa418a499c98af3a7c169b0cd
2024-07-11 11:02:28 +00:00
Mikhail Pyltsin
634c6b833b
[java] IDEA-352189 Support JEP 455. Implement increase language level check and fix
...
- add more tests
GitOrigin-RevId: 2545d756cff9650487cc2b12c0b8b5390d1863e7
2024-07-05 11:34:47 +00:00
Mikhail Pyltsin
ff1ce5a0bd
[java] IDEA-352189 Support JEP 455. Implement increase language level check and fix
...
GitOrigin-RevId: d69e01d624fcfc4ddb3af7292693ed056efc88a4
2024-07-04 15:25:05 +00:00
Tagir Valeev
174c24c450
[java-highlighting] Fix testdata (IDEA-355703)
...
We report less errors after [java-incomplete-model] Assume that any unresolved class-type is assignable to java.lang.Object
GitOrigin-RevId: a94eda62a430367a8fb1b5159fae4446a35687e1
2024-07-03 22:09:42 +00:00
Mikhail Pyltsin
f90bd8b6f1
[java-inspections] IDEA-355790 JEP 477. Suppress for class doesn't work
...
- These changes disable suppressions for implicit classes
GitOrigin-RevId: ff2fac065c092f257548bbfec5c799d48e116cac
2024-07-03 22:08:48 +00:00
Mikhail Pyltsin
07178b990f
[java-highlighting] IDEA-355777 Support JEP 477: implicit imports
...
- support implicit import for java.io.IO
- reimplement implicit static imports
GitOrigin-RevId: 3e2650128d43b1cff40c21c0539869070c6094d0
2024-07-03 22:08:38 +00:00
Tagir Valeev
b023c1d252
[java-highlighting] error.unnamed.variable.brackets: proof-reading
...
GitOrigin-RevId: b30031e9d76de357434f48e71b099cf27d4b90e4
2024-07-03 17:42:16 +00:00
Bas Leijdekkers
a01eb76a76
[java] disable String Templates for Java 23 (IDEA-355055)
...
GitOrigin-RevId: cc2b3dfffd4fe0ba34a91b0d9f342e32304bfd2c
2024-07-03 16:10:48 +00:00
Bas Leijdekkers
6916b6b005
Java: better error message when there are more arguments than parameters (IDEA-336129)
...
GitOrigin-RevId: a17a5f0f3878b9baf211737a614d1aa1a5103d31
2024-06-28 17:14:56 +00:00
Mikhail Pyltsin
330ba98e01
[java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
...
- fix NullableManager, when it can't find annotation in type
GitOrigin-RevId: 121927429534971abb4a50d1f670afbed9384045
2024-06-26 20:34:48 +00:00
Tagir Valeev
15bb3eb9f4
[java-incomplete-model] Support declared but unresolved exceptions
...
GitOrigin-RevId: 2e493f1820ce2e676708e191c0ff0b72b4ecaa59
2024-06-25 16:42:40 +00:00
Tagir Valeev
c93d4b68d2
[java-incomplete-model] Support unknown exceptions thrown from try block
...
GitOrigin-RevId: f968327e98f7f9804973c8ff9adf6366a5aec490
2024-06-25 13:54:11 +00:00
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
e377c6f30c
[java-incomplete-model] Support concatenation with null-type expressions
...
GitOrigin-RevId: 19cdff4368ec690fb291f5eb25c381dbbba3cdd4
2024-06-25 09:23:05 +00:00
Tagir Valeev
7b5b0bd4e4
[java-incomplete-model] Support known constructors with unresolved components
...
GitOrigin-RevId: 12f529c3eae1abba306c6318f189d08c877f9aa7
2024-06-25 09:23:05 +00:00
Tagir Valeev
b6771f471e
[java-incomplete-model] Fix unresolved method call with qualifier and incomplete hierarchy
...
GitOrigin-RevId: 94881c672bb3c1a5c3ea9dde381c6223a4996fca
2024-06-25 09:23:05 +00:00
Tagir Valeev
acf8109a0f
[java-incomplete-model] Support 'var' declarations
...
GitOrigin-RevId: 1d35868639192661ad6d1f8bafbcbda188b547b2
2024-06-25 09:23:05 +00:00
Georgii Ustinov
bea3fefda2
[Java. Code Formatting] Restore caret in files for AnnotateMethodTest#testAfterDoNotAnnoI
...
IDEA-353192
GitOrigin-RevId: 5f930ffb06158c40e786cd948c8f8d0982e61814
2024-06-21 15:13:57 +00:00
Georgii Ustinov
41cf8f6fe3
[Java. Code Formatting] Add check to TypeAnnotationUtil that language level is at least 8
...
IDEA-353192
GitOrigin-RevId: e8d2d8270dbc1c39300d5a2d55ef993e433ccdbc
2024-06-21 15:13:57 +00:00
Mikhail Pyltsin
73bbc5d00d
[java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
...
GitOrigin-RevId: 9bdb1273f507054c479eaa86597eadaf4568a9dd
2024-06-20 17:53:33 +00:00
Mikhail Pyltsin
fc86f137ca
[java-inspections] EA-1288620 record deconstruction can be broken in inspections
...
- check that record deconstructions have correct numbers of components
- optimize `unwrapSealedTypes` a bit
GitOrigin-RevId: 167dabb1a5e6dd156e8d5772373c6f059e209257
2024-06-20 17:53:33 +00:00
Tagir Valeev
f3a9cdfdab
[java-psi] Static interface method accessible through inheritance should not shadow static import
...
Fixes IDEA-355152 Good code red when static import collides with static interface method from the hierarchy
GitOrigin-RevId: f6f68cc372928d98bb1f66f2c3ddfaaf63d69702
2024-06-19 15:08:14 +00:00
Tagir Valeev
567e0b0d05
[java-intentions] IDEA-270206 Nullability annotation at type parameter/wildcard: add a quick-fix to move it to the bound
...
GitOrigin-RevId: e8e56c2d27a77414045064c784f48ff712ad0d2d
2024-06-14 16:05:02 +00:00
Tagir Valeev
636172d7db
[java-intentions] UnimplementInterfaceAction: do not try to remove synthetic methods
...
Fixes IDEA-354044 Error in Unimplement Interface when invoked on record
GitOrigin-RevId: 9c07e03d1f86ded0aeea3bd0f373dfc263e72eb4
2024-06-14 16:05:02 +00:00
Bas Leijdekkers
3b9377a54b
Java: better error message on duplicate reference in extends/implements list (IDEA-354856)
...
GitOrigin-RevId: 0ba4eed5966c273f94552d7fe623a69bb6eb6c95
2024-06-14 13:20:40 +00:00
Mikhail Pyltsin
ce5a0d65c2
IJ-CR-135655 [java-highlighting] S IDEA-286130 annotations are not allowed in permitted list
...
- fix text
- fix test
GitOrigin-RevId: 87072c9561528bd04a27c03293f926a33a2519f9
2024-06-13 10:54:53 +00:00
Tagir Valeev
77ec9855d8
[java-inspections] AddFinallyFix: handle end comments
...
GitOrigin-RevId: b8dbc546122362e256c92be5a3a696275639f2a5
2024-06-11 18:03:36 +00:00
Tagir Valeev
49ed49dc2d
[java-inspections] EA-1160494 - IOE: BasicJavaParserUtil.parseFragment
...
GitOrigin-RevId: 5a13ceb97f8105766928d67336fe9a87df62053a
2024-06-11 13:01:56 +00:00
Tagir Valeev
bbbda8b6af
[incomplete-project-model] Better processing of overloaded methods
...
GitOrigin-RevId: b5348e9a75486c5bb75b49fd3e415743cb026952
2024-06-07 18:19:54 +00:00
Tagir Valeev
6f754cceb9
[incomplete-project-model] Illegal initializer for an array: do not report on pending refs
...
GitOrigin-RevId: f4dc862ce95589b32ff1bd36092a187e1c43a4a3
2024-06-07 18:19:49 +00:00
Tagir Valeev
2e03408f96
[incomplete-project-model] Attribute value must be constant: do not report on pending refs
...
GitOrigin-RevId: 3ea9a300b731280c6778ebcee2c858ab8b3e6534
2024-06-07 18:19:44 +00:00
Tagir Valeev
49a5baff95
[incomplete-project-model] Lambda parameter type is potentially convertible to anything
...
GitOrigin-RevId: 7f20f6011defbdbf8e3a6ce956c2d7f058f25738
2024-06-07 18:19:39 +00:00
Tagir Valeev
d7e82eae56
[java-incomplete-model] Suppress 'Variable expected' for pending references
...
GitOrigin-RevId: 04453a4a5947b024df4387f6ea42b903be703b1d
2024-06-07 16:43:27 +00:00
Tagir Valeev
36e1bb72de
[java-incomplete-model] Basic support of unresolved functional interfaces
...
GitOrigin-RevId: b1a79f1a77911485011b011e09105fdadc887e58
2024-06-07 16:43:22 +00:00
Tagir Valeev
0037baab23
[java-incomplete-model] Do not report potentially convertible ==/!= comparisons
...
GitOrigin-RevId: 71b3f3c3edda0ffd112c314f6a5b5b0e2cb29ee6
2024-06-07 16:43:16 +00:00
Tagir Valeev
7fe1b165a4
[java-psi] Do not resolve super() call to Object() constructor when superclass is not resolved
...
Needed for incomplete project model.
GitOrigin-RevId: 2acbba54f4fd50fb3261601f1cb66175d7f19da6
2024-06-07 16:43:12 +00:00
Tagir Valeev
78d4bd2c8b
[java-intentions] Quick-fixes to change method/var return type when inference fails
...
Fixes IDEA-354184 Quick-fix for generic types
GitOrigin-RevId: 65d513f5303a082c26283e09275470840df90d30
2024-06-06 18:15:52 +00:00
Tagir Valeev
2d3ed0f730
[java-intentions] CreateConstructorParameterFromFieldFix: fill variables before modifying constructors
...
When chain target constructor is already updated, it affected other constructors from the same chain
Fixes IDEA-345876 Unable to add constructor parameter via quick-fix
GitOrigin-RevId: e13d1d24ad16dbd32281b7f13be6d656871acef2
2024-06-05 15:08:25 +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
Georgii Ustinov
a4d5e41d7f
[Java. Code Formatting] Rewrite the way of detection type annotation in JavaFormatterUtil
...
IDEA-353192
GitOrigin-RevId: 34e375e4e1e059be03aad12c2839911b8315ed06
2024-06-04 06:46:24 +00:00
Tagir Valeev
c85a3375f5
[java-highlighting] Test for bad inference
...
GitOrigin-RevId: a7a84f0b3cedcdcb7f41238a7747ff085140430e
2024-06-03 16:18:34 +00:00
Mikhail Pyltsin
7327bf910a
[java-highlighting] IDEA-353876 Support intersection type for switch selectors
...
GitOrigin-RevId: 075363ad27e93718b10b79234904eed7ac919436
2024-06-03 10:46:00 +00:00
Georgii Ustinov
3b50806cf1
Revert formatting type annotations on the same line before the type in method
...
IDEA-353192 IDEA-354026
GitOrigin-RevId: cbf3e0b332517194f35d979a631cbbb0121893b4
2024-06-01 09:59:49 +00:00
Mikhail Pyltsin
687ea8c03c
[java-highlighting] IDEA-286130 annotations are not allowed in permitted list
...
GitOrigin-RevId: 921ad24be3586a17a6e393d73687ddc36ce539ac
2024-05-30 17:07:51 +00:00