Ilya Gorbunov
4827aadcfd
Improve stability of lazy test, make some tests take less time
2017-12-26 23:14:09 +03:00
Ilya Gorbunov
934b3cc54e
Do not read volatile _value field second time it is already initialized
2017-12-26 23:14:07 +03:00
Ilya Gorbunov
5d62277fa5
Make SafePublicationLazyImpl.initializer volatile
...
This establishes happens-before relation between nulling out the initializer and
checking whether it is null. This will prevent the subsequent _value reads
being reordered before the initializer reads.
#KT-21868 Fixed
2017-12-26 23:13:14 +03:00
Sergey Igushkin
685b138f79
(minor) Fix testAndroidExtensionsIncremental() ambiguous file operation
2017-12-26 21:38:15 +03:00
Sergey Igushkin
01931c2ae6
Fix Kotlin internal files created in 'build/' ignoring custom buildDir
...
Issue #KT-10537 Fixed
2017-12-26 21:38:15 +03:00
Ilya Chernikov
953a485fe7
Increment repl line generation on compilation error
...
fixes #KT-17921 and #KT-21141
Tests added to the JSR223 local eval example
2017-12-26 19:27:32 +01:00
Ilya Chernikov
2d8e73f3f6
Make JSR 223 examples compatible with embeddable compiler, strip ...
...
some dependencies.
Fixes #KT-17561 and related issues
Warning: API changed slightly
2017-12-26 19:27:31 +01:00
Sergey Igushkin
d51b17c1b2
Fix @OutputFile annotation on a String property outputFile.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
9d1091cdaa
Add java-gradle-plugin for kotlin-gradle-plugin tasks validation;
...
Make task properties validation fail on warnings; run it during IT
2017-12-26 20:29:45 +03:00
Sergey Igushkin
7031087a93
Mark Gradle task properties with input/output annotations.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
d62ced3a82
Compile against gradleApi()
2017-12-26 20:29:45 +03:00
Mikhail Glukhikh
72ec55769b
Improve wording for "change package" fix for source root case
2017-12-26 18:39:51 +03:00
Mikhail Glukhikh
429c31c010
Improve wording in some inspections
2017-12-26 18:39:51 +03:00
Mikhail Glukhikh
1534488dd1
Test minor: output all available fixes in local inspection tests
2017-12-26 18:39:51 +03:00
Mikhail Glukhikh
2f987f08fa
Forbid word 'can' in local inspections with level > INFORMATION
...
Inspection texts were changed accordingly
2017-12-26 18:39:51 +03:00
Mikhail Glukhikh
56230420f8
AbstractApplicabilityBasedInspection: move visitor inside base class
2017-12-26 18:39:51 +03:00
Mikhail Glukhikh
3268189215
Cache intention inside IntentionBasedInspection
...
So intention is created only once.
Case with multiple intentions is no more allowed.
So #KT-21137 Fixed
2017-12-26 18:39:50 +03:00
Mikhail Glukhikh
5affb9a25c
Refactoring: "package matching directory" is now an inspection
2017-12-26 18:39:50 +03:00
Mikhail Glukhikh
3f1a3dfeb2
Refactoring: make "loop to call chain" AbstractKotlinInspection
2017-12-26 18:39:50 +03:00
Mikhail Glukhikh
f44fba746e
Refactoring: make "unnecessary variable" inspection applicability-based
2017-12-26 18:39:50 +03:00
Mikhail Glukhikh
221aac9820
J2K registerInspectionBasedProcessing: use correct target for applyTo
2017-12-26 18:39:50 +03:00
Mikhail Glukhikh
5a1a35bb35
Refactoring: "replace put with assignment" is now applicability-based
2017-12-26 18:39:49 +03:00
Mikhail Glukhikh
9e919829c8
Refactoring: "simplify assert not null" is now an inspection
2017-12-26 18:39:49 +03:00
Mikhail Glukhikh
8ebe16c9b2
Minor: reformat XML
2017-12-26 18:39:49 +03:00
Mikhail Glukhikh
bc361363d5
Refactoring: "simplify negated binary expression" is now an inspection
2017-12-26 18:39:49 +03:00
Mikhail Glukhikh
35d85ddd1f
Refactoring: "replace with operator assignment" is now an inspection
2017-12-26 18:39:49 +03:00
Mikhail Glukhikh
c995f70631
J2K processing: simplify (minor)
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
6b5aeaa9a6
J2K inspection-based processing: use more accurate isApplicable
...
Information level is taken into account in both base and pre-fix
isApplicable calls
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
ada7287c66
Refactoring: make "replace call with binary operator" an inspection
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
6d4b5bc48f
Refactoring: "introduce when subject" is now an inspection
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
a8b01a6b00
Refactoring: make "if-then to safe access" an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
91bcfb97c6
Refactoring: make "replace get or set" an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
756cb32eaf
Refactoring: make "replace array equality ..." an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
33d94cd5e1
J2kPostProcessing: add inspection-based processing #KT-21635 Fixed
2017-12-26 18:39:46 +03:00
Mikhail Glukhikh
67b78bce39
Introduce AbstractApplicabilityBasedInspection
...
Related to KT-21635, KT-21137
2017-12-26 18:39:46 +03:00
Nikolay Krasko
bf393505a9
More nullability update in selectors for compatibility in 181
2017-12-26 17:37:38 +03:00
Nikolay Krasko
e66e8bcd07
Use platform types to prepare for nullability check in 181
2017-12-26 17:08:11 +03:00
Joscha Alisch
809cc220ed
Select lambda after other args when it's outside argument list (KT-21214)
...
#KT-21214 Fixed
2017-12-26 13:09:17 +03:00
Nikolay Krasko
976a158ce1
Support alternative source popup for Kotlin files (KT-21958)
...
#KT-21958 Fixed
2017-12-26 12:49:27 +03:00
Nikolay Krasko
449fee74e8
Skip all same line locations when stepping over inline call (KT-20351)
...
#KT-20351
2017-12-26 12:46:45 +03:00
Nikolay Krasko
f39250c9a2
Fix irrelevant additional stops on breakpoint on line with inlines (KT-21945)
...
#KT-21945 Fixed
2017-12-26 12:46:45 +03:00
Nikolay Krasko
f38a4f509d
Minor: code rearrange
2017-12-26 12:46:45 +03:00
Nikolay Krasko
c5886bc7a2
Remove sleep() from soSuspendableCallInEndOfFun and guarantee suspending
2017-12-26 12:46:45 +03:00
Ilya Gorbunov
10639eaf6a
Add pattern and options properties to common Regex
...
And add a test that accesses them and checks they work as expected.
2017-12-26 05:40:37 +03:00
Ilya Gorbunov
d9edc5f221
Replace Regex constructor-like functions with secondary constructors
...
Historically secondary constructors were not supported in Kotlin/JS, so they had to
be emulated with constructor-like top level functions, now they can be rewritten
as true secondary constructors.
#KT-22003 Fixed
2017-12-26 05:40:35 +03:00
Ilya Gorbunov
053f3b6ac0
Tests: use helper function to assert compile-time and run-time type check
...
To cleanup warnings about useless cast or type check that is always true.
2017-12-26 04:55:44 +03:00
Ilya Gorbunov
ecd42f14b3
Compile common stdlib tests against common stdlib
...
Declare platform-specific test utilities as expect.
2017-12-26 04:55:40 +03:00
Pavel V. Talanov
c030a047aa
Fix getting ModuleResolver by element for script files
...
Fixes EA-105435 (some isntances)
JavaResolveExtension: refactor API
2017-12-25 20:12:51 +03:00
Pavel V. Talanov
2af0bf4c71
Drop JsProjectDetector
...
It leads to undesired behaviour
such as returning library source when only binaries are queried
It is redundant since js libraries do not include kotlin source files
(real binary format is used for this purpose for along time now)
2017-12-25 20:12:48 +03:00
Pavel V. Talanov
6551ee5403
Test completion in script files
...
Test for 'JavaResolutionUtils.getJavaDescriptorResolver' failing with AE
Tests ebd3ac6dc8
See EA-105435
2017-12-25 20:12:46 +03:00