Commit Graph

900 Commits

Author SHA1 Message Date
Ilya Gorbunov 3639afafce Deprecated with ERROR preconditions with eager message. 2015-11-11 19:00:03 +03:00
Ilya Gorbunov f7135dfe50 Do not override default AbstractList iterator() implementation for primitiveArray.asList wrappers.
#KT-9927 Fixed
2015-11-11 16:41:39 +03:00
Ilya Gorbunov 0786027271 Deprecate Range<T> in generated code.
Provide hidden overloads of downTo and until with byte and short parameters for binary compatibility.
2015-11-11 03:53:52 +03:00
Ilya Gorbunov 6bac3e1986 Drop Ranges, Progressions, ProgressionIterators for Double and Float.
Undeprecate generic Comparable.rangeTo, but return private implementation instead.
Undeprecate contains and coerceIn for generic ranges.
2015-11-11 03:53:47 +03:00
Ilya Gorbunov 5ebb3d20e8 Change internal implementation of progression: use first, last instead of start, end
Keep the end value as it was passed to progression constructor.
Deprecate primary progression constructor and introduce factory method in companion object.
2015-11-11 03:53:40 +03:00
Ilya Gorbunov 854d376988 Eliminate byte and short ranges and progressions from range construction functions' return type. 2015-11-11 03:53:29 +03:00
Ilya Gorbunov 8bdd1e3246 Sorting optimizations: do not make excessive copies, introduce methods to sort the whole array.
#KT-9904 Fixed
2015-11-11 03:29:40 +03:00
Ilya Gorbunov 3e81cdfc5d Deprecate mapIndexedTo for Maps. 2015-11-11 03:12:19 +03:00
Ilya Gorbunov 9323f61eaf Introduce T.addTo(MutableCollection<T>), mapNotNull and mapIndexedNotNull extensions.
#KT-4410 Fixed
2015-11-11 03:12:17 +03:00
Ilya Gorbunov 008a8059cf Introduce filterIndexed
#KT-9502 Fixed
2015-11-11 02:42:52 +03:00
Valentin Kipyatkov 4a182ac6e2 Fixing class names after rebase 2015-11-09 15:37:45 +03:00
Ilya Gorbunov de77ee6d63 Replace deprecated join with joinToString in idl2k 2015-11-06 01:12:04 +03:00
Ilya Gorbunov 183523cf24 Refactoring: move engine related classes to subdirectory. 2015-11-06 00:48:13 +03:00
Ilya Gorbunov f9bfeb0f32 Doc templating: name things properly 2015-11-06 00:46:05 +03:00
Natalia Ukhorskaya 03cda7f4d1 Access javaTask.classpath property only in doFirst because otherwise it doesn't contain classes added after apply of kotlin plugin
#KT-7277 Fixed
 #KT-9899 Fixed
2015-11-05 19:19:15 +03:00
Sergey Mashkov 703367c5c7 Update tests due to removed DOM utilities 2015-11-05 14:41:30 +01:00
Ilya Gorbunov 1a0c2e2cf6 In-place sorting.
#KT-9034
2015-11-05 09:04:31 +03:00
Ilya Gorbunov 4fc54a12b8 In-place reversing.
#KT-9034
2015-11-05 09:02:58 +03:00
Ilya Gorbunov 05fd2b012a Provide overloads both for Strings and CharSequences of filter, filterNot, reversed and partition 2015-11-04 22:19:57 +03:00
Ilya Gorbunov 0dd7e398c7 Use reverse indexed iteration in last and lastOrNull with predicate for CharSequences and Strings. 2015-11-04 22:19:50 +03:00
Ilya Gorbunov 8c5ac26613 Use CharSequence in repeat and joinToString. 2015-11-04 22:19:39 +03:00
Ilya Gorbunov b4b84a38d5 Use templating in the docs for generated code to name things properly. 2015-11-04 22:19:37 +03:00
Ilya Gorbunov 5b055ac663 Preserve type of subsequence in drop* and take* operations.
Validate argument of drop (required in JS, more meaningful exception in JVM)
2015-11-04 22:19:35 +03:00
Ilya Gorbunov 59b67b32c4 Add hidden declarations for replaced overloads with String receiver in generated code. 2015-11-04 22:19:27 +03:00
Ilya Gorbunov 935e606b64 Generalize String extensions to take CharSequence as receiver and parameters where applicable: generated code.
Exclude Strings family from default families.
2015-11-04 22:19:26 +03:00
Ilya Gorbunov 9bbe0d67ff Do not treat directory with copied test sources for js library as source root, as it confuses debugger under certain circumstances.
Remove duplicated test.
2015-11-04 22:19:20 +03:00
Ilya Gorbunov 05c2edf60c Drop deprecated merge functions. 2015-11-04 00:05:47 +03:00
Ilya Gorbunov 65a98d6968 Temporary drop mapNotNull and mapNotNullTo.
Disable mapNotNull tests

#KT-4410
2015-11-04 00:05:45 +03:00
Ilya Gorbunov 3a82225201 Deprecate toGenerator and toLinkedList extensions. 2015-11-03 22:41:06 +03:00
Ilya Chernikov 63e1fa4cc0 Simplifying cleanup in gradle plugin after introducing ZipHandle.clearFileAccessorCache method in the platform, minor refactoring 2015-11-03 14:18:21 +01:00
Michael Nedzelsky 3c855547e5 improve tests for access from tests to internal for maven and gradle (add override for internal function) 2015-10-30 14:42:44 +03:00
Michael Nedzelsky 190bab099c fix KT-9441 Unable to Access Internal Classes from Test Code within Same Module
#KT-9441 Fixed
2015-10-28 01:58:54 +03:00
Ilya Gorbunov 551e0181dc Require explicit type parameter specification for filterIsInstance. 2015-10-27 21:47:50 +03:00
Natalia Ukhorskaya e83315f5bc Gradle plugin: do not store generated folder for android into sourceSets, because they are reused for different buildTypes and flavors
#KT-8202 Fixed #KT-9715 Fixed
2015-10-27 11:41:24 +03:00
Ilya Gorbunov 9e8600e52f Cleanup in stdlib generators 2015-10-20 18:10:20 +03:00
Andrey Breslav 9d7a8e7696 Create empty sources JAR for kotlin-osgi-bundle 2015-10-20 16:32:42 +03:00
Ilya Gorbunov a0ccd36377 Fix legacy package facade name usage. 2015-10-20 04:37:19 +03:00
Ilya Gorbunov 8635eaae69 Alter regex in verify script for versions like 1.0.0-beta+1005 2015-10-20 04:37:05 +03:00
Ilya Gorbunov fc7c008672 Provide deprecated unconstrained contains, indexOf, lastIndexOf methods for migration. 2015-10-20 02:31:18 +03:00
Ilya Gorbunov 95aac7ade6 Generate contains, indexOf, lastIndexOf with @NoInfer 2015-10-20 02:30:54 +03:00
Ilya Gorbunov 100cba7d4f Fix legacy package facade names in maven plugin tests. 2015-10-19 23:04:02 +03:00
Ilya Gorbunov 59cd1cd14a Restore referential equality for AnnotatedClassDescriptor and AnnotatedConstructorDescriptor. 2015-10-19 23:03:59 +03:00
Andrey Breslav 18524ea8ec Proper semantics for former data classes 2015-10-19 22:42:33 +03:00
Mikhail Glukhikh ff60a13228 libraries/tools fix (data classes migration) 2015-10-19 18:17:22 +03:00
Ilya Gorbunov 078d904d41 Deprecated ranges: relax errors to warnings. 2015-10-19 15:37:42 +03:00
Ilya Gorbunov 69dc6701cc Deprecate Double, Float and Comparable range implementations. 2015-10-19 15:37:41 +03:00
Ilya Gorbunov d1d0807229 Add a note about *Raw functions behavior. 2015-10-16 23:55:37 +03:00
Ilya Gorbunov 683bc4bd01 Generate *Raw methods. 2015-10-16 23:38:29 +03:00
Ilya Gorbunov d1a007e902 Do not generate deprecated contains for ranges. 2015-10-16 23:38:25 +03:00
Ilya Gorbunov c5cd599e30 Delegate indexOf and lastIndexOf to List if the Iterable is List. 2015-10-16 23:38:23 +03:00