Denis Zharkov
04483eb826
Report custom diagnostic instead of symbol deprecation
...
For annotations that should be replaced with modifiers
2015-09-10 10:04:59 +03:00
Dmitry Petrov
a00346a141
MultifileClassCodegen
...
- initial implementation
- new Kotlin file kinds + stub builder
2015-09-09 19:08:17 +03:00
Ilya Gorbunov
5a0cd4f6fb
Clarify documentation for asReversed.
2015-09-09 17:56:34 +03:00
Ilya Gorbunov
52f3e9ca06
Accept in-projection of Comparator as a parameter when possible.
2015-09-08 17:11:12 +03:00
Ilya Gorbunov
c14f376d21
Deprecate precondition checks with non-lazy message.
...
Make precondition checks with lazy message inline.
Use require with lazy message in stdlib.
#KT-8253 Fixed
2015-09-08 10:27:46 +03:00
Ilya Gorbunov
e9901e7351
Deprecate assert with non-lazy message.
...
#KT-8253
2015-09-08 10:27:20 +03:00
Ilya Gorbunov
44f7b6d699
Unit testing API: better mapping on JUnit, proper formatting assertion details when message is not specified
...
#KT-8929 Fixed
Sensible default message for assertion methods.
#KT-8314 Fixed
Provide assertFailsWith also with KClass and reified type argument.
2015-09-08 10:26:07 +03:00
Ilya Gorbunov
f6c9d63c46
Simplify asserter implementations.
...
Do not use inline functions in unit tests API.
2015-09-08 10:23:59 +03:00
Ilya Gorbunov
267aad3926
Simplify asserter acquisition.
2015-09-08 10:23:46 +03:00
Ilya Gorbunov
dcf490d533
Update deprecation replacement.
2015-09-07 19:36:27 +03:00
Ilya Gorbunov
b5af83cb36
Drop deprecated StringTemplate from StdLib and move it to kotlin-jdbc, which is using it.
2015-09-07 19:36:25 +03:00
Dmitry Petrov
0fa6e0730a
jvmName should be applicable to FILE.
...
Get jvmName from Annotations
(JetFile is not Annotated, since it is a part of AST hierarchy, and there is no corresponding descriptor;
however, there is a standard way to obtain Annotations for JetFile, which is exactly what we need, and what Annotated provides).
2015-09-07 16:28:54 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Mikhail Glukhikh
eab288bdd7
annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
...
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov
952d45dc8b
Deprecate JVM platform annotations in favor of capitilized themselves
2015-09-04 18:19:31 +03:00
Denis Zharkov
5471a1d18a
Add kotlin.external annotation and deprecate kotlin.jvm.native
2015-09-04 18:19:31 +03:00
Denis Zharkov
26f9bd7b63
Deprecate some of JVM flag annotations in favor of capitilized themselves
2015-09-04 18:19:31 +03:00
Denis Zharkov
2b76941733
Deprecate throws annotation in favor of Throws
2015-09-04 17:23:26 +03:00
Valentin Kipyatkov
460001cc8f
Stdlib: deprecated conflicting extensions that are not the same as synthetic ones
2015-09-03 15:55:56 +03:00
Valentin Kipyatkov
dab47a8caf
Stdlib: marked with @HiddenDeclaration and @deprecated redundant explicit extension properties
2015-09-03 15:55:56 +03:00
Yan Zhulanow
55b2029b3c
Remove FIELD target from jvmStatic and platformStatic annotations
2015-09-02 20:36:48 +03:00
Ilya Gorbunov
c4b18d8fb8
Special case of slice for int ranges, sliceArray returning array.
...
#KT-8711
2015-09-02 20:22:38 +03:00
Ilya Gorbunov
faa26cdb25
Introduce operations on Arrays returning Arrays: reversedArray, sortedArray.
...
#KT-8711
2015-09-02 20:22:27 +03:00
Ilya Gorbunov
89df3925fa
Unify operations on Array<T> and Array<out T> (copyOf, copyOfRange) which return the same type as the receiver.
2015-09-02 20:21:20 +03:00
Ilya Gorbunov
a3056bea1a
Accept in-projection of Comparator as a parameter.
2015-09-02 20:21:18 +03:00
Ilya Gorbunov
b3073dbd2d
Provide lazy implementation with an external object to synchronize on.
2015-09-02 15:49:53 +03:00
Ilya Gorbunov
4fbf787f7d
Change proposed replacements for Delegates.lazy and blockingLazy to preserve behavior.
2015-09-02 15:49:50 +03:00
Ilya Gorbunov
ceb3b7da9d
Thread extension properties deprecated in favor of synthetic extension properties.
...
Executor.invoke and ExecutorService.invoke deprecated.
2015-09-02 15:49:44 +03:00
Yan Zhulanow
47a05e8bd6
Fix targets on stdlib annotations
2015-08-31 15:33:15 +03:00
Denis Zharkov
4a3fbcc16e
Make project compilable after fixes about generic nullability
2015-08-28 18:50:26 +03:00
Ilya Gorbunov
83f9ee2737
Concurrent getOrPut for concurrent maps.
...
#KT-5800 Fixed
2015-08-28 17:51:48 +03:00
Ilya Gorbunov
84d3d42e05
Replace deprecated reverse method usages.
2015-08-27 11:45:44 +03:00
Ilya Gorbunov
ca798d8d71
Rename reverse to reversed.
...
#KT-8171
2015-08-27 11:45:30 +03:00
Alexander Udalov
8d9618348d
Move .java and .kotlin extension properties to kotlin.jvm
...
Delete the old ones in package kotlin.reflect.jvm because otherwise the code
using those functions will become red in a lot less meaningful way (overload
resolution ambiguity) than if they're deleted (unresolved import)
Based on the work originally done by @dnpetrov
#KT-8380 Fixed
2015-08-27 08:19:50 +03:00
Ilya Gorbunov
b8badd59ba
Introduce reversed extension for Comparator.
2015-08-27 00:10:11 +03:00
Ilya Gorbunov
5a474adf59
Unify selector parameter names.
2015-08-27 00:09:57 +03:00
Ilya Gorbunov
7d33599fc2
Parameterless nullsFirst and nullsLast and misc comparator combining functions.
2015-08-27 00:09:44 +03:00
Ilya Gorbunov
5a4e598ba7
Another approach for sorting nulls.
2015-08-27 00:09:31 +03:00
Ilya Gorbunov
d49a1973e5
Change null handling in compareValuesBy(a, b, functions). Provide nullsFirst() and nullsLast() to extend Comparator<T> to Comparator<T?>.
2015-08-27 00:09:17 +03:00
Ilya Gorbunov
521e0b679d
Rename sortedDescendingBy to sortedByDescending
2015-08-27 00:08:50 +03:00
Ilya Gorbunov
5eb69334b4
compareBy and related Comparator constructors have the same null-comparison semantics as compareValuesBy.
2015-08-27 00:08:23 +03:00
Ilya Gorbunov
0f5c3678f8
Provide asIterable for sequences.
2015-08-27 00:08:10 +03:00
Ilya Gorbunov
8d481fc611
Deprecate all sort methods and provide sorted ones.
...
#KT-4903
2015-08-27 00:07:43 +03:00
Dmitry Jemerov
4743a69d76
rename platformName annotation to jvmName
2015-08-25 15:40:46 +02:00
Dmitry Jemerov
341f09afd3
rename platformStatic to jvmStatic
2015-08-21 16:59:05 +02:00
Sergey Mashkov
84ef068f5d
#KT-8708 refactor trimIndent, trimMargin, replaceIndent, replaceIndentByMargin, prependIndent
2015-08-12 18:45:10 +03:00
Sergey Mashkov
b146b0eda9
Remove deprecated function usage
2015-08-12 18:45:10 +03:00
Sergey Mashkov
7afa40590d
KT-8708 Function to strip leading whitespace (stripMargin, trimMargin, stripIndent?)
2015-08-12 18:45:10 +03:00
Ilya Gorbunov
15d69499d0
Stop matching after the end of the input sequence was reached.
...
#KT-8763 Fixed
2015-08-11 05:11:32 +03:00
Mikhail Glukhikh
bd3b5690a2
Standard annotations: must be documented
2015-08-05 18:32:12 +03:00