Commit Graph

1517 Commits

Author SHA1 Message Date
Ilya Gorbunov 9c4221cda8 Return EMPTY range [0, -1] when MIN_VALUE is specified as exclusive upper bound.
#KT-12762 Fixed
2016-08-26 05:19:51 +03:00
Ilya Gorbunov ca8b284805 Use 1.8 JVM target bytecode version for kotlin-stdlib-jre8 module to prevent loading on previous JRE versions. 2016-08-26 05:19:06 +03:00
Ilya Gorbunov 0d7819e011 Move exceptions to kotlin package in JS library, introduce type aliases for exceptions in kotlin package in JVM runtime.
#KT-18 Fixed
2016-08-17 12:40:50 +03:00
Ilya Gorbunov 2c1d90c79d Improve test coverage of map operations 2016-08-10 21:52:24 +03:00
Ilya Gorbunov dcd6e86cd3 Minor: rename type parameter from C to M as it stands for Map 2016-08-10 21:52:24 +03:00
Ilya Gorbunov bb774cea76 Minor: remove anonymous class for Map.asSequence 2016-08-10 21:52:24 +03:00
Ilya Gorbunov fb99919c59 Accept maps out-projected by key where possible. 2016-08-10 21:52:24 +03:00
Ilya Gorbunov 738219d53e Make Map.toSortedMap accept Map out-projected by key type as the receiver.
Update related completion testData.
2016-08-10 21:52:24 +03:00
Ilya Gorbunov 9ff6a6260e Minor: explicit visibility and improved code formatting 2016-08-10 21:32:33 +03:00
Ilya Gorbunov 200f1c98ed Minor: fix formatting and improve docs 2016-08-10 18:23:32 +03:00
Laszlo Hornyak 6fda0816f3 buildString with initial capacity for the StringBuilder instance
this method helps save computation time when the developer knows or have a good
educated guess about the size of the generated string and have to use control
structures while filling the string builder

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2016-08-10 18:23:32 +03:00
Ilya Gorbunov e35a214eaf Review fixes: special case of toMap for singleton map.
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov efc8f2c88a Provide extensions to copy maps.
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov ae985e24ca Docs: clarify docs for 'generateSequence'. 2016-08-09 17:43:12 +03:00
Ilya Gorbunov fed24c2be6 Docs: preserve empty lines in the generated documentation to separate summary and paragraphs in the body. 2016-08-09 17:43:12 +03:00
Ilya Gorbunov e31167e74f Improve FileTreeWalk documentation,
#KT-13297 Fixed
2016-08-09 17:43:12 +03:00
Ilya Gorbunov e7d250b7d7 Document that sequences could be iterated multiple times.
#KT-13115 Fixed
2016-08-09 17:43:12 +03:00
Ilya Gorbunov 39d7d3381c Make unchecked cast in Map.getOrDefault extension that is covariant by K, since getOrDefault member now requires K as key.
Relates to #KT-13209.
2016-07-29 21:03:56 +03:00
Ilya Gorbunov 0a0bdbc8b3 Minor: fix test source root 2016-07-29 21:03:56 +03:00
Mikhail Glukhikh bf4231d65a Standard library regenerated
(cherry picked from commit 68af26c)
2016-07-27 10:52:01 +03:00
Mikhail Glukhikh a2b68f65be Suppress CAST_NEVER_SUCCEEDS removed from standard library code
(cherry picked from commit 7d9aa04)
2016-07-27 10:51:41 +03:00
Ilya Gorbunov e9ccc480b0 Docs: improve docs for Closeable.use and AutoCloseable.use 2016-07-13 20:39:54 +03:00
Alexander Udalov 8f33830f29 Suppress UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS in several places
This is related to KT-6611 being fixed recently. Note that not all cases of
incorrect "cast never succeeds" were fixed
2016-07-13 13:42:42 +03:00
Dmitry Jemerov c80e094967 specify FQ names for collection types as well 2016-07-12 17:34:09 +02:00
Dmitry Jemerov ccbc19f7e9 fix qualified links in Module.md
#KT-11373 Fixed
2016-07-12 16:23:58 +02:00
Ilya Gorbunov 919c099a95 Minor: make test output less verbose 2016-07-01 18:50:53 +03:00
Ilya Gorbunov 157ed3f8c1 Claim a stream produced from a Sequence having ORDERED property.
Add a test verifying that property is respected.
2016-07-01 18:06:54 +03:00
Ilya Gorbunov 22ee3a8dc1 Relax type parameter constraint for Closeable.use and AutoCloseable.use to allow nullable receiver.
#KT-12894 Fixed
2016-07-01 18:05:25 +03:00
Ilya Gorbunov dd0ecb5ece Adjust exposed visibility of platform specific implementations. 2016-07-01 18:05:23 +03:00
Ilya Gorbunov a45da393b9 Provide access to named groups of regex match result on JDK8.
#KT-12753 Fixed
2016-07-01 18:05:22 +03:00
Ilya Gorbunov 25974be3f8 Provide specialized stdlib function implementations depending on current JRE version #KT-8254 2016-07-01 18:05:21 +03:00
Ilya Gorbunov b16f46d932 Add extensions from kotlinx.support libraries:
use for AutoCloseables: #KT-5899,
extensions for java.util.Stream.
2016-07-01 18:04:42 +03:00
Ilya Gorbunov d6261521ff Create new artifacts for standard library extensions for JRE7 and JRE8.
Set default JDK for kotlin compiler plugin.
Set default JRE path for maven surefire plugin.
Run tests for extension modules on the corresponding JRE.
#KT-8254
2016-07-01 16:49:13 +03:00
Ilya Gorbunov c5a208f3eb Rearrange stdlib unit tests across packages.
Rearrange JS stdlib unit tests.
2016-06-18 16:50:32 +03:00
Ilya Gorbunov d266f546f4 Remove obsolete and not relevant to stdlib tests 2016-06-18 16:50:32 +03:00
gandrianakis 83e97d272e Small grammar fixes for documentation of default value handling related methods for Map 2016-06-08 21:45:24 +03:00
Ilya Gorbunov 9bfb226948 Drop inline-only extensions and hide non-inline-only ones that are available now as mapped methods of mapped builtins.
#KT-10887 Fixed
2016-05-13 18:14:52 +03:00
Ilya Gorbunov 15dcd3d9f9 Add tests for deserialization of collections persisted with kotlin 1.0 2016-05-12 21:20:54 +03:00
Ilya Gorbunov 6a07d5f89c Fix serialVersionUID for EmptyList after introducing RandomAccess interface. #KT-10794 2016-05-12 21:20:54 +03:00
Dmitry Jemerov be8c953be6 workaround for KT-9407: don't use qualified name in Pattern class link
#KT-12129 Fixed
2016-05-12 17:53:30 +02:00
Ilya Gorbunov 8425304866 Advance snapshot version to 1.1-SNAPSHOT 2016-05-11 17:28:38 +03:00
Ilya Gorbunov d646afabb2 Document functions which return set or map preserving the order of elements/entries.
#KT-11632 Fixed
2016-05-08 03:24:03 +03:00
Ilya Gorbunov 249d08a66e Handle special cases of drop, take, takeLast when it is known in advance that the result is a single-item list. #KT-9990 2016-04-29 22:21:19 +03:00
Ilya Gorbunov a665b2183c Optimize operations to return special collection implementations when result is empty or has single element.
#KT-9990
2016-04-29 22:21:19 +03:00
Ilya Gorbunov 2d12ed68c8 Remove runtime specialization in inline last and lastOrNull to prevent double inlining of predicate body. 2016-04-29 22:21:19 +03:00
Ilya Gorbunov 09c1ff1233 Do not use indexed access for lists not supporting RandomAccess
Add RandomAccess specialization.
2016-04-29 22:21:19 +03:00
Ilya Gorbunov f4f82656f7 Use list iterators instead of indexed access in operations on lists taking a lambda.
Related to #KT-9607
2016-04-29 22:21:19 +03:00
Valentin Kipyatkov b551886889 Code cleanup: removed redundant semicolons 2016-04-29 11:26:25 +03:00
Ilya Gorbunov 4b533b297e reified assertFailsWith available in kotlin-test for JS
#KT-11346
2016-04-27 18:22:20 +03:00
Ilya Gorbunov 409094f0f7 Make stdlib functions dependent on reified is checks available in JS.
#KT-11346 Fixed
2016-04-27 18:22:20 +03:00