Ilya Gorbunov
2bb1d6d5b4
Provide implementation of read-only AbstractCollection, AbstractList and AbstractSet,
...
Alias AbstactMutableCollection to java.util.AbstractCollection.
Change inheritance hierarchy of reversed list views.
2016-09-28 22:06:03 +03:00
Ilya Gorbunov
75069143c7
Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.
...
AbstractList is imported from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov
47be8e664a
Minor: replace var with val.
2016-09-22 22:28:14 +03:00
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
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
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
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
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
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
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
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
409094f0f7
Make stdlib functions dependent on reified is checks available in JS.
...
#KT-11346 Fixed
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
a2db8f9090
Performance: move the state out of multifile class parts to avoid synchronization.
2016-04-14 19:03:39 +03:00
Ilya Gorbunov
f3f1aa8a15
Change String.subSequence parameter names to match those of CharSequence.subSequence.
2016-04-01 21:39:09 +03:00
Ilya Gorbunov
f35dc47b4e
Optimize snapshot operations to return special collection implementations when result is empty or has single element.
...
#KT-9990 Fixed
2016-03-31 21:30:59 +03:00
Ilya Gorbunov
d5d19f5595
Make Map.plus accept Map out-projected by key type as either operand (receiver or parameter).
...
#KT-11301 Fixed
2016-03-31 17:20:58 +03:00
Ilya Gorbunov
9caa17dc74
Minor: Make internal monitorEnter/monitorExit functions private to remove them from the public API
...
#KT-11485
2016-03-31 17:15:10 +03:00
Ilya Gorbunov
ab68b49a70
Introduce RandomAccess to JS.
...
Make EmptyList support RandomAccess.
#KT-10794
2016-03-30 21:06:18 +03:00
Ilya Gorbunov
cbf8dca28d
Add deprecated extension MutableList.remove.
...
#KT-11648 Fixed
2016-03-29 19:56:03 +03:00
Ilya Gorbunov
9233d5a825
Minor: do not throw error immediately, return error message to 'require' who shall throw an IllegalArgumentException by itself.
2016-03-04 20:28:07 +03:00
Ilya Gorbunov
0cd0554078
JS: Remove unsupported Enumeration declaration.
...
Relates to #KT-7480
2016-03-01 14:01:39 +03:00
Ilya Gorbunov
e5dbb65ff7
JS: Remove declarations of unsupported SortedSet and TreeSet, make toSortedSet() jvm-only.
...
Fix completion test.
Relates to #KT-7480
2016-03-01 14:01:38 +03:00