Yan Zhulanow
a44fd964cf
Kapt: Don't convert field initializers for enum fields inside companion objects (KT-37732)
...
For classes with companion objects, Kotlin compiler generates a 'Companion' static accessor field.
Java prioritizes fields over inner types (apparently, Scala does this as well, KT-29864), so the generated initializer doesn't compile.
As a workaround, initializer generatation is disabled for enum fields inside companion objects. Certainly, it's not a proper fix, however it does fix the regression.
2020-09-29 23:58:29 +09:00
Toshiaki Kameyama
86ac44c23e
"Replace 'if' with elvis operator": don't suggest if val initializer is a complex expression
...
#KT-35165 Fixed
2020-09-29 23:58:29 +09:00
Toshiaki Kameyama
653e20dcba
Convert put to assignment: don't report when receiver object has custom 'set' method
...
#KT-33212 Fixed
2020-09-29 23:58:29 +09:00
Toshiaki Kameyama
5abb6bc7a5
Add quickfix for SENSELESS_NULL_IN_WHEN to remove redundant when branch
...
#KT-24556 Fixed
2020-09-29 23:58:29 +09:00
Toshiaki Kameyama
668473c337
Add quickfix for CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT to remove const modifier
...
#KT-35215 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
5a3c6def8f
Join with assignment: fix false negative when local variable are used
...
#KT-34270 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
b56272dc64
Add name to argument: do not remove necessary backticks
...
#KT-30894 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
a492fe7757
"Put arguments/parameters on separate lines": respect code style settings
...
#KT-20420 Fixed
2020-09-29 23:58:27 +09:00
Toshiaki Kameyama
74ee68e57b
Remove redundant backticks: do not report if variable inside the string and isn't followed by space
...
#KT-35051 Fixed
2020-09-29 23:58:27 +09:00
Toshiaki Kameyama
ad3ea9a36a
Replace with binary operator: don't highlight when receiver is platform type
...
#KT-35097 Fixed
2020-09-29 23:58:27 +09:00
Toshiaki Kameyama
93db78e7ac
JavaMapForEachInspection: report for expression with implicit receiver
...
#KT-31833 Fixed
2020-09-29 23:58:27 +09:00
Yan Zhulanow
85e8b56a02
Minor: Simplify code
2020-09-29 23:58:26 +09:00
Toshiaki Kameyama
75e8849c94
Add quick fix for INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER
...
#KT-34533 Fixed
2020-09-29 23:58:26 +09:00
Yan Zhulanow
9f192ba85e
Fix false positive in +0.0 == -0.0 comparison simplification (KT-17735)
2020-09-29 23:58:26 +09:00
Toshiaki Kameyama
915dc6ce91
FoldInitializerAndIfToElvisInspection: don't report when 'var' variable has no explicit type and it's used as not nullable type
...
#KT-38349 Fixed
2020-09-29 23:58:26 +09:00
Yan Zhulanow
db140b2815
Fix Pill debug IDEA run configurations
2020-09-29 23:58:25 +09:00
Yan Zhulanow
7b5fc19156
Minor: Simplify replacement check logic in ReplaceJavaStaticMethodWithKotlinAnalogInspection
2020-09-29 23:58:25 +09:00
Yan Zhulanow
ed2b547973
Minor: Extract suspend call check to a separate function
2020-09-29 23:58:25 +09:00
Toshiaki Kameyama
ef5335ba99
ReplaceJavaStaticMethodWithKotlinAnalogInspection: don't report for Character.toString(int)
...
#KT-34859 Fixed
2020-09-29 23:58:25 +09:00
Toshiaki Kameyama
b008e6c9be
SimplifiableCallChainInspection: don't report if suspend function cannot be called correctly
...
#KT-23934 Fixed
2020-09-29 23:58:24 +09:00
Yan Zhulanow
1e9bb00744
Debugger: Disable "missing dependency superclass" diagnostic in evaluator (KT-38659)
2020-09-29 23:58:24 +09:00
Yan Zhulanow
62affd8e0d
Kapt: Allow to strip @Metadata annotation from stubs (KT-36667)
2020-09-29 23:58:24 +09:00
Ilya Goncharov
da16b8e527
[Gradle, JS] Add includedRange with version only
2020-09-29 16:29:01 +03:00
Kirill Shmakov
3075de917b
Add useAndroidX property into mobile library template KT-42123
2020-09-29 16:22:56 +03:00
Kirill Shmakov
ac9b5dabfc
Clarify test names to avoid clashes in resolve
...
This is to workaround problem described in #KT-41342
2020-09-29 16:22:54 +03:00
Ilya Goncharov
31e7dd5fcc
[Gradle, JS] Fix escaped characters in package.json
...
^KT-40202 fixed
2020-09-29 15:46:16 +03:00
Ilya Goncharov
337a66f906
[Gradle, JS] Fix NpmRange string representation with concrete version
...
^KT-42222 fixed
^KT-40986 fixed
^KT-39838 fixed
2020-09-29 15:46:16 +03:00
Ilya Goncharov
0fa4f0572b
[Gradle, JS] Add test for duplicated dependency with range version
...
^KT-42222 fixed
^KT-40986 fixed
^KT-39838 fixed
2020-09-29 15:46:16 +03:00
Ilya Goncharov
024771028c
[Gradle, JS] Fix yarn.lock resolution in case of duplicated dependencies
...
^KT-42222 fixed
^KT-40986 fixed
^KT-39838 fixed
2020-09-29 15:46:16 +03:00
Konstantin Tskhovrebov
34b6003371
as42: remove unused bunch files
2020-09-29 15:32:35 +03:00
Konstantin Tskhovrebov
c8def4543d
Bump AS versions.
2020-09-29 15:32:35 +03:00
Konstantin Tskhovrebov
8a4aac53d8
as42: Fix override.
2020-09-29 15:32:34 +03:00
Andrei Klunnyi
ddfb86c839
KT-42014 ClassNotFoundException in Android Studio 4.2
...
KotlinCodeHintsPass was removed in 5fe1eaea but later a reference to
it appeared by accident in 50461e61.
2020-09-29 15:32:34 +03:00
Mikhail Zarechenskiy
8ff141357e
as42: move plugin.xml to appropriate resource directy
...
#KT-41930 Fixed
2020-09-29 15:32:34 +03:00
Mikhail Zarechenskiy
11ac5bd32a
as42: Fix test about forgotten bunches
2020-09-29 15:32:34 +03:00
Mikhail Zarechenskiy
929fb1f178
as42: Fix compilation of tests
2020-09-29 15:32:34 +03:00
Nikolay Krasko
99b9bc83a1
as42: Fix assertEqualsToFile usage
2020-09-29 15:32:34 +03:00
Nikolay Krasko
d83355e4c4
as42: Remove setupGradleSettings usage
2020-09-29 15:32:34 +03:00
Nikolay Krasko
fa9368125f
as42: Remove clearing scratchesMapping in tests
2020-09-29 15:32:33 +03:00
Nikolay Krasko
c5b70797e2
as42: Fix compilation errors in AbstractJavaToKotlinConverterForWebDemoTest
2020-09-29 15:32:33 +03:00
Nikolay Krasko
1dc3cb5978
as42: Fix compilation errors caused by 202 platform
2020-09-29 15:32:33 +03:00
Nikolay Krasko
ecff2816ac
as42: Fix duplication registration for com.intellij.psi.classFileDecompiler in plugin
2020-09-29 15:32:33 +03:00
Nikolay Krasko
a3bef10b97
as42: Add fastutil library to dependency to make KtUsefulTestCase.<clinit> work
...
java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/Object2FloatMap
at com.intellij.configurationStore.MyXmlSerializer$bindingProducer$1.createRootBinding(xmlSerializer.kt:172)
at com.intellij.configurationStore.MyXmlSerializer$bindingProducer$1.createRootBinding(xmlSerializer.kt:170)
at com.intellij.configurationStore.OldBindingProducer.getRootBinding(xmlSerializer.kt:154)
at com.intellij.configurationStore.MyXmlSerializer.getRootBinding(xmlSerializer.kt:186)
at com.intellij.util.xmlb.Serializer.getRootBinding(Serializer.java:18)
at com.intellij.configurationStore.JdomSerializerImpl.serializeObjectInto(xmlSerializer.kt:78)
at com.intellij.configurationStore.XmlSerializer.serializeObjectInto(xmlSerializer.kt:39)
at com.intellij.configurationStore.XmlSerializer.serializeObjectInto$default(xmlSerializer.kt:38)
at com.intellij.configurationStore.XmlSerializer.serializeObjectInto(xmlSerializer.kt)
at com.intellij.codeInsight.CodeInsightSettings.writeExternal(CodeInsightSettings.java:231)
at org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase.<clinit>(KtUsefulTestCase.java:123)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at junit.framework.TestSuite.createTest(TestSuite.java:60)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:307)
at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:150)
at junit.framework.TestSuite.<init>(TestSuite.java:129)
2020-09-29 15:32:33 +03:00
Nikolay Krasko
1f3602c4b7
as42: Register DumbUtil service as it required in PsiElementFinderImpl
2020-09-29 15:32:33 +03:00
Nikolay Krasko
1b97511248
as42: Register classFileDecompiler through xml
...
It doesn't work otherwise. It's expected that extension point is registered
at the moment of ClassFileDecompilers instatiation or it fails.
2020-09-29 15:32:32 +03:00
Nikolay Krasko
5ba70b2cbb
as42: Additional fixes for AS42 and 202 platform
2020-09-29 15:32:32 +03:00
Nikolay Krasko
2df030f583
as42: Apply 201 <-> AS41 diff
2020-09-29 15:32:32 +03:00
Nikolay Krasko
17e43aadaa
Introduce AS42 bunch
2020-09-29 15:32:32 +03:00
Dmitry Petrov
1fc459ab4c
JVM_IR KT-42260 add abstract overrides for generated stubs
2020-09-29 14:06:12 +03:00
Alexander Udalov
445b2d6eb1
JVM IR: minor, unmute bytecode text test
...
Also fix typo in the name
2020-09-29 12:38:54 +02:00