Vyacheslav Gerasimov
1152286ee3
Build: Add kotlin-dependencies to cache-redirector list
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
6b3f341ab5
Build: Publish jcabi-aether-1.0-SNAPSHOT to kotlin-dependencies as 1.0-dev-3
...
This allows to remove dependency on snapshot repository
https://oss.sonatype.org/content/repositories/snapshots
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
9a9acd0fc1
Minor: Cleanup kotlin.buildSrc.prepare-deps/build.gradle.kts
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
0e1d15df5a
Build: Drop android-dx from buildSrc
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
6a38cb050f
Build: Add property for internal kotlin repo
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
2ce961a662
Build: Add kotlin-dependencies repo & update dx coordinates
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
aa79c1bcf6
Build: Extract publication for dependencies to publishing.gradle.kts
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
f5825a45f7
Build: Add bintray publication for dependencies/android-dx
2019-05-29 15:08:05 +03:00
Vyacheslav Gerasimov
10779ea397
Build: Extract android-dx to separate project with publishing
2019-05-29 15:08:04 +03:00
Vyacheslav Gerasimov
d0db006614
Build: Determine versions.properties location by buildscript.sourceURI
2019-05-29 15:08:04 +03:00
Alexander Udalov
2292a1a10e
Ignore new daemon tests instead of muting them on buildserver
2019-05-29 13:18:27 +02:00
Mads Ager
5be0bd4a56
JVM_IR: Enable loadJava tests
2019-05-29 13:10:47 +02:00
Toshiaki Kameyama
65f06454be
Add "Control flow with empty body" inspection
...
#KT-30970 Fixed
2019-05-29 18:04:24 +07:00
Alexander Udalov
d2fcb8cc6a
Get rid of copy-pasted code from JavaSdkUtil
...
#KT-30973 Fixed
2019-05-29 10:50:37 +02:00
Dmitry Gridin
1c4fb9b00b
ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
...
Relates to #KT-30975
2019-05-29 15:40:10 +07:00
Dmitry Gridin
e2d5e9a184
Only when keyword should be highlighted in WhenWithOnlyElseInspection
...
#KT-31673 Fixed
2019-05-29 15:40:10 +07:00
Toshiaki Kameyama
e955dcfc14
WhenWithOnlyElse: don't remove when subject variable if needed
...
#KT-30975 Fixed
2019-05-29 15:40:10 +07:00
Alexey Tsvetkov
7f1d30058a
Fix IC test for multifile part with property
...
Our JPS and Gradle plugins handle
recompilation of multifile classes differently.
JPS plugin delegates handling to the JPS itself,
which tracks dependencies via bytecode,
and marks classes as dirty when they are affected.
So in JPS other parts of multifile classes are recompiled only
when a part's signature is changed.
In Gradle plugin we handle recompilation ourselves in
simpler way: any change in any part leads to a recompilation
of all parts of the same multifile class.
In future we should improve our Gradle plugin, but for now
I'm changing the test so that both JPS and Gradle tests
recompile all parts.
Also the dummy function is added to make sure that we
don't blindly recompile everything when a part is changed.
2019-05-29 10:23:19 +02:00
Alexander Udalov
c13bec0e41
Minor, simplify code in PropertyCodegen
2019-05-29 10:23:19 +02:00
Alexander Udalov
967a6bd80d
Remove NotNull PSI element parameter from PropertyCodegen.generateBackingField
...
#KT-31131 Fixed
2019-05-29 10:23:19 +02:00
Alexander Udalov
e9b50157da
Try loading PSI from descriptor in OtherOrigin constructor
...
To simplify several call sites
2019-05-29 10:23:19 +02:00
Alexey Tsvetkov
56d5846ef1
Add test for KT-31131
2019-05-29 10:23:18 +02:00
Dmitriy Novozhilov
bd87332b0c
Fix compiler errors in compiler detected after enabling @OnlyInputTypes in NI
2019-05-29 10:57:08 +03:00
Dmitriy Novozhilov
e574106799
[NI] Support @OnlyInputTypes annotation. #KT-29307 fixed
2019-05-29 10:54:41 +03:00
Dmitriy Novozhilov
0f7e91ff6d
[NI] Update testdata for stdlib diagnostic tests
2019-05-29 10:53:34 +03:00
Dmitriy Novozhilov
139497bafb
[NI] Add checking @NotNull parameters for candidates
2019-05-29 10:53:07 +03:00
Dmitriy Novozhilov
7c4101e21c
[NI] Disable capturing/approximation type in TypeSubstitutor with enabled NI
2019-05-29 10:35:46 +03:00
Anton Bannykh
dad334ffcd
JS IR: ignore the new suspend callable reference test
2019-05-29 10:17:15 +03:00
Dmitry Gridin
f5796a303d
Fix tests
...
Relates to #KT-30622
2019-05-29 11:00:28 +07:00
Dmitry Gridin
8988b4b344
Convert ReplaceSubstringIntention to ReplaceSubstringInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
2310826ec9
Remove MergeWhenIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
41daf99346
Remove IfThenToDoubleBangIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
afcb2f3436
Remove ConvertIfWithThrowToAssertIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
d3339cae46
Merge ReplaceMathMaxWithCoerceAtLeastIntention & ReplaceMathMinWithCoerceAtMostIntention with ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
26478b1374
Remove ConvertTrimMarginToTrimIndentIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
0b9b49d7bc
Remove ConvertTrimIndentToTrimMarginIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
91e9ed25f7
Remove ConvertNegatedBooleanSequenceIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
dd03a81309
Remove ConvertClassToSealedClassIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
1adc2ae4c8
Remove ConvertAssertToIfWithThrowIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Ilya Gorbunov
fe9bd9ee20
Fix method reference ambiguity in test after introducing 'capitalize' overload
2019-05-29 06:49:05 +03:00
George Gastaldi
d0d4d00379
build: add kotlin-compiler-embeddable to BOM
2019-05-29 05:21:49 +03:00
Ilya Gorbunov
8badfca459
Fix titlecase lowering in decapitalize
...
Replace isUpperCase() with !isLowerCase check to lower both
upper- and titlecased first chars.
2019-05-29 03:54:46 +03:00
Ilya Gorbunov
a921bd04e0
capitalize/decapitalize: improve docs, add one test
2019-05-29 03:54:46 +03:00
Jake Wharton
af31794f60
Add Locale-accepting overloads for (de)capitalize in JDK stdlib
...
#KT-28933 fixed
2019-05-29 03:35:33 +03:00
Mikhail Zarechenskiy
f702417655
[NI] Relax rules for call completion: require at least one constraint
...
It's enough to have at least one good constraint.
Note that the whole algorithm can be a bit more general:
we could check also Out<T>, In<T> and verify that T has good only
lower constraint or upper constraint, but there are questions for
types like Inv<Out<T>>, where T should have lower and upper constraints
#KT-31514 Fixed
2019-05-29 02:14:00 +03:00
Mikhail Zarechenskiy
848640253a
Revert "[NI] Disable capturing/approximation type in TypeSubstitutor with enabled NI"
...
This reverts commit f20ec3e0a6 .
2019-05-29 01:31:28 +03:00
Mikhail Zarechenskiy
86a95e1a7b
Revert "[NI] Add checking @NotNull parameters for candidates"
...
This reverts commit 910177ab17 .
2019-05-29 01:31:27 +03:00
Sergey Igushkin
25371734e8
Make withJava() safe to call repeatedlt on same target
2019-05-29 01:06:27 +03:00
Andrey Uskov
9a4596eaba
Fix compilation of of KotlinMPPGradleTaskRunner
2019-05-29 00:05:18 +03:00
Anton Bannykh
c3170d1908
JS: cache metadata, grouped by package FQN
2019-05-28 23:33:17 +03:00