Tagir Valeev
5cc297d7ea
[java-inspections] IDEA-353938 Report ignored object allocations inside method references
...
GitOrigin-RevId: 1261b9bdb64bec0269fe7d0ffb2ac634e1494e81
2024-05-23 11:08:49 +00:00
Konstantin Nisht
c6a91a1eb0
[platform] IJPL-150138: Mute tests again
...
GitOrigin-RevId: f55d484b674bf9000a915fb9062d182852fe3d9e
2024-05-23 09:44:28 +00:00
Konstantin Nisht
e3cc9372b1
[platform] IJPL-150138: Avoid cancellation during rollback of modality state
...
GitOrigin-RevId: ae734d7ebc8707a5df2807466ff7cf0a0da4c127
2024-05-23 01:09:46 +00:00
Alexey Kudravtsev
dd83f65ffb
show plain intentions (not just quick fixes) in dumb mode if they are dumbaware (part of IJPL-404 Show intention actions while indexing)
...
GitOrigin-RevId: 2b9c7ecbbeccc265a90978641cc531f478f3a92a
2024-05-23 01:01:32 +00:00
Tagir Valeev
26ecc4e294
[java-highlighting] Precise member tracking for unresolved reference
...
Also: support method ref highlighting in incomplete project model
Part of IDEA-353117 Error highlighting in incomplete project model
GitOrigin-RevId: b081ddcbaa4e54403a20bac0a2cdb37db421ceca
2024-05-23 00:20:40 +00:00
Tagir Valeev
caad5f1cb1
[java-inspections] Properly track multiple potential imports for unresolved reference
...
Part of IDEA-353117 Error highlighting in incomplete project model
GitOrigin-RevId: 06ac6ae2759e5ff0935bf39f750bfb9dad1fd235
2024-05-23 00:20:35 +00:00
Alexey Kudravtsev
ef7a6fe109
delegate "dumb aware" flag in all sorts of intention action wrappers correctly (part of IJPL-404 Show intention actions while indexing)
...
GitOrigin-RevId: b934b9c8e3e5d8ccdf0c003775740f530370087c
2024-05-22 21:13:38 +00:00
Alexey Kudravtsev
eec4e7570a
cleanup
...
GitOrigin-RevId: b1e6b562d6f7911579103d2ff33e977ad7ac3483
2024-05-22 18:34:40 +00:00
Mikhail Pyltsin
6abe1afadd
[java] EA-1216180 try not to resolve the whole extends list for overriding icon in dumb mode.
...
- add more checks
- also check `aClass.getExtendsList().getReferences()`
GitOrigin-RevId: ce38b17fb19e0efda237c3a0899ecac09fe06dbd
2024-05-22 10:22:20 +00:00
Mikhail Sokolov
bf4b265712
IJPL-150141 test added for problem indicating
...
(cherry picked from commit ce572d0ec0dfc2ddbb9d2522e08945b391019931)
IJ-CR-134925
GitOrigin-RevId: c4495ad14ab04c625b448738652b035a9bea6211
2024-05-22 10:17:45 +00:00
Vladislav Rassokhin
97f3dce05b
[java-tests] JavaLanguageLevelTest: Completely remove registered source root after test
...
GitOrigin-RevId: e6fa2ab59ecb9e20c2468faff5d1d6f040bf14ee
2024-05-21 22:23:00 +00:00
Maxim.Kolmakov
fa0c1eca64
IJPL-150138 Disable tests until the reason investigated to avoid hanging builds
...
GitOrigin-RevId: 60d3910f8fa36778ac3fc4648b2f8f041a8a0ab4
2024-05-21 16:57:18 +00:00
Alexey Kudravtsev
54226c6bf4
fix testModificationInExcludedFileDoesNotCauseRehighlight
...
GitOrigin-RevId: 1772ffdda123d4b97d0e7f80db18b30a113b29a9
2024-05-21 16:23:20 +00:00
Alexey Kudravtsev
12fe9dde02
handle one other type of PSI change (part of KTIJ-27988 K2 IDE: used/unused declaration highlighting is not updated in Kotlin source on editing Java source)
...
GitOrigin-RevId: d2e7d4c9801d50df41cffa33eedb22a1db1ac7cf
2024-05-21 16:23:10 +00:00
Mikhail Pyltsin
38a0b779ae
[java] EA-1216180 try not to resolve the whole extends list for overriding icon in dumb mode.
...
- Use `getExtendsList`. It is less accurate, but it looks safe to use in dumb mode when we try to predict and guess
GitOrigin-RevId: a0fdb0e1d21613e31d73da56b3d2ee3cd5fc3a0c
2024-05-21 14:17:01 +00:00
Tagir Valeev
c26fabffef
[java-highlighting] Do not mark potential imports for unresolved references as unused
...
Improves IDEA-353117 Error highlighting in incomplete project model
GitOrigin-RevId: d6419b900fc817c28b7d1b942b28857a14b44141
2024-05-21 14:09:47 +00:00
Tagir Valeev
4ebe1c86dd
[incomplete-project-model] IncompleteDependenciesService: expose WriteActionAutoCloseable to avoid checked exception
...
GitOrigin-RevId: 120be5007236d6f2c7147116f5efd27ab64e0959
2024-05-21 14:09:44 +00:00
Tagir Valeev
a60bd8c4eb
[java-analysis] JavaPsiPatternUtil.getExposedPatternVariables: support switch guard
...
Fixes IDEA-353697 Instanceof pattern as nullchecks are suggested for removal
GitOrigin-RevId: b187d2dcc71ecac7ad68c696d0583741791c47eb
2024-05-21 10:55:03 +00:00
Bart van Helvert
0be55e2dc4
[java] Fix run line marker for JUnit tests with Gradle config
...
#IDEA-353722 Fixed
GitOrigin-RevId: b85f9a3ec7a15e4f72c5a0ae8ddce371e32b22f0
2024-05-20 20:28:13 +00:00
Georgii Ustinov
639483455c
[Java. Code Formatting] Add new tests for formatting type annotations before the type or type parameters
...
IDEA-353192
GitOrigin-RevId: d416a8d0ec09c1b9c66ff2096a9abb63053f47d1
2024-05-17 14:19:15 +00:00
Alexey Kudravtsev
c84e273956
rehighlight the entire file whenever the reference was changed in some other place, even inside codeblock, to correctly update unused declarations, to fix KTIJ-27988 K2 IDE: used/unused declaration highlighting is not updated in Kotlin source on editing Java source
...
GitOrigin-RevId: d4025dde88ed3a997a515cb859077fb2a4348d5d
2024-05-17 13:50:18 +00:00
Alexey Kudravtsev
49e238388a
add javadoc
...
GitOrigin-RevId: 94d964a41969a5bf84ee49c9b71ad53640557952
2024-05-17 13:50:11 +00:00
Georgii Ustinov
77bfbe1b39
[Java. Code Formatting] Fix tests which relied on old version of Nullable/NotNull annotations
...
IDEA-353192
GitOrigin-RevId: f913b37c8fb9c7c754d7c6fcd5c1cdd215a7f295
2024-05-17 11:16:41 +00:00
Georgii Ustinov
95ffe008da
[Java. Code Formatting] Add support to preserve multiple known type annotations on the same line
...
IDEA-353192
GitOrigin-RevId: ea883b1326c056f6c09bb62b6d03af75ac4e98b8
2024-05-17 11:16:41 +00:00
Georgii Ustinov
ba3477f10c
[Java. Code Formatting] Preserve single known type annotation on the same line with type or type parameter list
...
IDEA-353192
GitOrigin-RevId: 5baee165cdc0acd33cca2b77c7a0430203e1a24c
2024-05-17 11:16:41 +00:00
Liudmila Kornilova
59f500b605
IJPL-1036 remove AccessToken from IncompleteDependenciesAccessToken because finish() requires write action
...
Signed-off-by: Liudmila Kornilova <liudmila.kornilova@jetbrains.com >
GitOrigin-RevId: 9a2b8a697471ac4bf32ecf51936e5dc022e80e07
2024-05-16 19:54:53 +00:00
Tagir Valeev
8b83a30705
[java-inspections] RedundantThrowsDeclaration: do not report when method contains unresolved calls
...
Helps IDEA-353117 Error highlighting in incomplete project model
GitOrigin-RevId: ac7e3931d54ed2ac24c34adf074b8dd09dd7cda9
2024-05-16 17:49:36 +00:00
Tagir Valeev
a25d7951bd
[java-mrjar] Treat classes with the different multi-release version as equivalent
...
It looks like this is a better alternative for now. In particular because we don't know how to resolve a reference from a library class within the same library. The result depends on in context of which module we are doing this resolve, but in general we don't know from which module we started. Currently, we resolve to the same version as the original class, but this might be incorrect. If we consider different versions of a class as different classes, we have problems with code-insight features, as for example, return type of a method and its direct supermethod might be non-equivalent, if the method is declared in source file but a supermethod is declared in the library.
Fixes IDEA-353000 must either be declared abstract or implement abstract method
GitOrigin-RevId: 3fa59bc6c8510f8dc0bcab63ccf491b4ff90610a
2024-05-15 20:15:37 +00:00
Alexey Kudravtsev
6e9810de00
cleanup
...
GitOrigin-RevId: 2637d96e86e2a210fcdf6d1b390f914770e91842
2024-05-15 19:01:10 +00:00
Tagir Valeev
bec96fb550
[postfix-templates] Move ModCommand-based surrounder to background
...
IJPL-149774 ModCommand-based surrounder is executed under writeAction from postfix live template
GitOrigin-RevId: e73ebca237baf1c6501c20304f90ce168a017523
2024-05-15 15:55:32 +00:00
Tagir Valeev
8fad668268
[java-inspection] IDEA-345669 Report value compared to itself with == or !=
...
GitOrigin-RevId: 601c0bb6c5beddaace52d3b094506d2229195d37
2024-05-15 15:55:21 +00:00
Tagir Valeev
a97e3bf80d
[java-postfix-templates] Fix test (import was missing)
...
GitOrigin-RevId: e6d977dd095f07e0654e465820fd73208db9c5dc
2024-05-15 10:31:46 +00:00
Alexey Kudravtsev
aa2f8c054b
fix duplicate file level highlights; add test
...
GitOrigin-RevId: 6013b05627aab37e043f445484922a62317fa361
2024-05-14 18:34:24 +00:00
Alexey Kudravtsev
b66d4897fa
fix test: in case of limited CPUs on TeamCity worker, ForkJoinPool may crash or freeze with thread exhaustion symptoms
...
GitOrigin-RevId: d417464eebfb7227bc2e0742fa36fc30ed754d52
2024-05-14 15:53:28 +00:00
Aleksey Dobrynin
ccf644aaed
[java, completion] use default tail text for a jigsaw completion IDEA-352245
...
GitOrigin-RevId: 1d7753860c413c92d697dc106f4d011022c861ce
2024-05-14 15:34:39 +00:00
Aleksey Dobrynin
6e2024f6b1
[java, jigsaw] fix: flaky test. the test needs a smart mode IDEA-353200
...
GitOrigin-RevId: 83bd1954ac4d67a7fac98739fe3d9877f4f047ac
2024-05-14 15:34:39 +00:00
Bas Leijdekkers
bbb76f93cf
[java] don't suggest "implements" for type parameter (IDEA-353386)
...
GitOrigin-RevId: fec190f372d53eb9311a54dc01e511ef432b0ee4
2024-05-14 10:30:00 +00:00
Bas Leijdekkers
106130b6f8
[java] better quick fix text (IDEA-353386)
...
GitOrigin-RevId: ebc64c441f2140181ad4e996005a45b19936b7d3
2024-05-14 10:29:57 +00:00
Bas Leijdekkers
0a8f0ae1c8
[java] better error message for type parameter outside bounds when the type parameter is not a concrete class (IDEA-353386)
...
GitOrigin-RevId: 6fcb1f8c2180ed319cdf7030de9c38b302e8e2d4
2024-05-14 10:29:53 +00:00
Alexey Kudravtsev
f4825a4eb7
more diagnostics of failing test
...
GitOrigin-RevId: 489bf8e28478d3dee0e6700024933f19197a3197
2024-05-13 16:46:08 +00:00
Alexey Kudravtsev
39b60e7bee
more diagnostics of failing test
...
GitOrigin-RevId: d7da75514821977d03b8fb6358921839d0f6a635
2024-05-13 14:39:48 +00:00
Georgii Ustinov
f762b8fa7b
[Java. Code Formatting] Change tests after adding support to format last line
...
IDEA-351758
GitOrigin-RevId: 11bb2e2298d371ebf4041a05b089b0997a228d14
2024-05-13 13:59:09 +00:00
Mikhail Pyltsin
a87cef51de
[Java. Code Formatting] Add support to align last line in text block if there is no symbols
...
IDEA-351758
GitOrigin-RevId: fca446697ac8eb5f1c24fbb3a1bf72924a48a65a
2024-05-13 13:59:09 +00:00
Liudmila Kornilova
95f0870af5
IJPL-2877 Find unindexed files using mod count
...
Signed-off-by: Liudmila Kornilova <liudmila.kornilova@jetbrains.com >
GitOrigin-RevId: 81adeda1ee309fde9b2d3ed462542a9018ed0464
2024-05-13 13:01:29 +00:00
Tagir Valeev
0ea0eadc51
[mod-commands] IJPL-149593 ModCommand-based Surrounder API
...
GitOrigin-RevId: 56b1bc727db4e686afc6363326c1b079030da414
2024-05-12 17:34:00 +00:00
Mikhail Pyltsin
38cb4bb5f3
[java-refactoring] IDEA-352592 Rebind static import during moving inner class to new file
...
GitOrigin-RevId: 00174f0f8ced4e9316d30125e2302110671a5e4b
2024-05-10 18:25:13 +00:00
Mikhail Pyltsin
6ba54ec2b8
[java-inspection] IDEA-310469 Java inspection for "Pattern variable can be used" does not find all cases
...
- support an inverted case
GitOrigin-RevId: 34c4a732331778cf158e84425a7d61df4dc6ee53
2024-05-10 17:26:16 +00:00
Alexandr Suhinin
360db06c21
[extract method] fix the flaky parameter name suggestion
...
GitOrigin-RevId: 1f278179d51e1dac3cb2992a3ec85c98ac208b31
2024-05-10 11:27:40 +00:00
Andrei.Kuznetsov
de9b8ef2de
IJPL-426: increase requirement @NeedsIndex.{ForStandardLibrary > Full} for some tests than cannot run in ForStandardLibrary at the moment
...
DUMB_RUNTIME_ONLY_INDEX currently means "entities available on project opening" (even if those entities are sources)
GitOrigin-RevId: 95d770e9cbf7ba3e41a0b56b0412c71ae5951144
2024-05-10 08:22:25 +00:00
Bas Leijdekkers
153827d95f
Java: handle @Repeatable annotations better in “Unused declaration” inspection
...
GitOrigin-RevId: 677f2c52ac069497147398dce1b42709e78ff445
2024-05-09 12:47:21 +00:00