Andrey Breslav
f925bfccd0
Changing default nullability for type arguments to NotNull
2012-12-14 15:28:21 +04:00
Andrey Breslav
32073f0987
Fixing compilation in stdlib tests
2012-12-10 17:00:05 +04:00
Andrey Breslav
6141467499
Fixing tests after annotations changed
2012-12-10 16:44:41 +04:00
Andrey Breslav
b3265024ab
list(), set() and map() -> listOf(), setOf() and mapOf()
2012-12-03 21:39:56 +04:00
Andrey Breslav
5f766aa33a
list(), set() and map() introduced
2012-12-03 17:23:21 +04:00
Andrey Breslav
4084416d56
Remove 'inline'
2012-12-03 17:23:21 +04:00
Andrey Breslav
6ed2d1560c
Move arrayList() to the top
2012-12-03 17:23:21 +04:00
Andrey Breslav
6df5e8b73a
Deprecate confusing arrayList(), hashSet() and such. Introduce arrayListOf(...) ans such
2012-12-03 17:23:20 +04:00
Evgeny Gerashchenko
00873b6e8c
Reverted loading arrays from java with 'out' projection kind as return value.
...
#KT-3065
2012-11-29 17:02:43 +04:00
Andrey Breslav
9dd167a760
Duplicating method removed from stdlib
2012-11-28 16:05:48 +04:00
Andrey Breslav
5b93ae2d08
Variance in functions/properties removed from stdlib
2012-11-24 15:59:16 +04:00
Nikolay Krasko
aeb7a0f1a7
Fix signature - return List<T> instead of List<in T>
2012-11-22 18:06:00 +04:00
Evgeny Gerashchenko
21e97b408c
Loading java arrays as Array<out T> at method return type position, as well.
2012-11-20 16:16:47 +04:00
Evgeny Gerashchenko
be7989af36
Moved JVM-specific String.repeat method to StringsJVM.kt
2012-11-19 13:29:17 +04:00
Tommy Hallgren
7ccded5f6d
KT-2503 Added String.repeat method
...
#KT-2503 fixed
2012-11-17 14:43:06 +04:00
Andrey Breslav
92ef1c9417
Some 200 warnings eliminated from stdlib code
2012-10-19 16:17:51 +04:00
Andrey Breslav
a3c50fc751
assert() now works with -ea
2012-10-11 21:08:11 +04:00
Andrey Breslav
c0af93f237
orEmpty() for Array<T> fixed
2012-10-09 19:19:24 +04:00
Andrey Breslav
7d28ee4342
Nullable-specific routines now respect the fact that <T> may be instantiated with a nullable type
2012-10-09 12:58:47 +04:00
James Strachan
8a9485bd5f
added a helper method to get the child elements of an Element by name
2012-10-09 09:12:34 +01:00
James Strachan
6a59820de3
added a test case for File.relativePath() along with fixing a bug if you pass the same file as the argument; it should have returned the empty string
2012-10-09 08:36:51 +01:00
Svetlana Isakova
9d5f5f7adf
KT-2842 Function with declared non-null receiver resolves with nullable argument receiver
...
#KT-2842 fixed
2012-10-02 14:20:00 +04:00
Pavel V. Talanov
be0fca3f65
Remove references to javascript annotations from java stdlib
...
Fix annoying bad annotation in repository
2012-10-01 16:21:06 +04:00
Pavel V. Talanov
efe0c83872
Delete some strange code left (accidentally?) for the purpose of testing KT-1515.
2012-10-01 16:17:42 +04:00
Andrey Breslav
66359894ee
Additional tests for new behavior of getOrElse() and getOrPut()
2012-09-27 14:47:01 +04:00
Andrey Breslav
2a76f6df14
Compilation fixed
2012-09-27 14:35:23 +04:00
Andrey Breslav
c8e711f84b
getOrElse() and getOrPut() fixed to respect how maps work with nulls
2012-09-27 13:52:05 +04:00
Alex Tkachman
1b37f13a34
annotations for java.util.ServiceLoader
...
remove some unnecessary !! from stdlib
2012-09-27 06:43:13 +02:00
Alex Tkachman
804e3769ff
remove some unnecessary !! from stdlib
2012-09-26 19:19:44 +02:00
Alex Tkachman
e2d514907a
annotations for j.u.c.locks + related fixes of tests
2012-09-26 18:52:46 +02:00
Svetlana Isakova
ca2e21afc5
Pair made covariant
2012-09-26 20:39:29 +04:00
James Strachan
b5145f1a87
allow mapValues() to be used on a Map not just a MutableMap
2012-09-26 09:04:08 +01:00
Svetlana Isakova
85f3dbf4fc
added annotations for Collections and Arrays
2012-09-24 14:18:04 +04:00
James Strachan
be44702145
fixes KT-2091 allowing fold() and foldRight() to take different types of initial value and return the same typed result
2012-09-21 16:31:04 +01:00
Andrey Breslav
5dc20e687f
Nullability fix for StringsJVM
2012-09-21 10:37:24 +04:00
Andrey Breslav
1a44599d7c
@Nullable/@NotNull annotations for Input/Outoput Streams and Data Input/Output
2012-09-20 20:27:37 +04:00
Andrey Breslav
2abe2e581d
AbstractStringBuilder, StringBuilder and java.io.File annotated with nullable/notnull
2012-09-20 18:12:57 +04:00
Evgeny Gerashchenko
8e1323bb43
Replaced sure() invocations with '!!' operator in libraries written on Kotlin.
2012-09-17 18:00:21 +04:00
Alex Tkachman
a4e272d7c6
optimization of toString for primitive types and "$expr"
...
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
James Strachan
9c3d1071cd
added more DRY compareBy function and helper class
2012-09-14 12:44:09 +01:00
James Strachan
51122a288d
tried more concise comparison code
2012-09-14 12:05:06 +01:00
James Strachan
5647701c24
added a little sample test case of data classes
2012-09-14 11:19:13 +01:00
James Strachan
81d83cd4f0
added component1() / component2() methods to Map.Entry along with a test case so that maps can be iterated over via: for ((k, v) in map)
2012-09-14 11:18:35 +01:00
Natalia.Ukhorskaya
60bdae9d75
Prohibit body for annotation class
...
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
James Strachan
ba01576c41
added a partition helper method to partition a collection into a collection of matching items and not matching items
2012-09-12 15:55:34 +01:00
James Strachan
3e6c0c0f4e
fixed bad description on the elements() helper methods (which are descendants not children) and added some helper methods for immediate child elements and text
2012-09-12 14:58:30 +01:00
James Strachan
bcec41c779
allow nullable expressions to be used for lazily creating new items if there is not a value in the Map
2012-09-12 14:56:28 +01:00
Svetlana Isakova
f987aa4faa
removed JLang and LUtil from file named in stdlib
2012-09-10 20:15:19 +04:00
Svetlana Isakova
5e18ba9241
removed extensions toMutableList/Collection/Set from stdlib
2012-09-10 20:15:19 +04:00
Andrey Breslav
89fd0526cf
TupleN classes and their usages replaced by Pair and Triple
...
(KT-2358 Drop tuples)
#KT-2358 In Progress
2012-09-07 21:26:42 +04:00