Commit Graph

328 Commits

Author SHA1 Message Date
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
Andrey Breslav 8333448f10 Pair and Triple classes added 2012-09-07 21:26:12 +04:00
Andrey Breslav 57e63a8529 Any.hashCode() and Any?.hasCodeOrDefault(Int) added to standard library 2012-09-07 21:26:12 +04:00
Svetlana Isakova ce23fe7941 added toMutableList, toMutableCollection, toMutableSet
methods to standard library
2012-09-05 18:55:17 +04:00
Svetlana Isakova 8b749084b5 library changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova a3194e9a46 removed unnecessary import jet.Iterator 2012-09-05 18:55:16 +04:00
Alexander Udalov d99ffbd120 jet.Annotation
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
 #KT-1620 Fixed
2012-08-27 20:44:43 +04:00
Andrey Breslav c0c2ca0ac2 Report errors when iterator() returns a nullable type 2012-08-24 19:49:33 +04:00
Andrey Breslav 66faa0c03a For-loop range expression (collection) can not be null 2012-08-24 19:49:33 +04:00
Svetlana Isakova ea611cb51d check modifiers for local declarations 2012-08-22 20:42:35 +04:00
James Strachan 1c763dabe2 uncommented test now KT-1718 is fixed 2012-08-17 10:47:29 +01:00
James Strachan ecbd4daefb avoid unnecessary verbose type parameters now the type inferencer is better 2012-08-17 09:44:52 +01:00
Svetlana Isakova 6625c8987b removed unnecessary reference
to java.util.Iterator
2012-08-16 18:39:24 +04:00
Svetlana Isakova 396588f0c3 added jet.Iterator in import
(KT-2606 to avoid it)
2012-08-16 18:39:23 +04:00
Svetlana Isakova 77ef3d34ab not to generate extensions
to java Iterable/Iterator
2012-08-16 18:39:23 +04:00
Svetlana Isakova 266cd5d4e7 not generate methods for java Iterable/Iterator
in standard library
2012-08-16 18:39:23 +04:00
Svetlana Isakova ca6d7e643e use kotlin Iterable/Iterator
instead of java Iterable/Iterator
in Kotlin code in library
2012-08-16 18:39:23 +04:00
Svetlana Isakova e1281953e7 tests changed
val hasNext -> fun hasNext()
2012-08-16 18:39:23 +04:00
Evgeny Gerashchenko 5d8de8fbd2 KT-2596 Can't use iterator in for-loop
#KT-2596 fixed
2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko 1bc99ef19a KT-2579 Rename Range.minus() to reversed and make it extension
#KT-2579 fixed
2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko 8084876fed Using empty ranges in downTo generator. 2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko a4031225d0 Changed usages of upto/downto in test to rangeTo and downTo, respectively.
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko 662fdca034 Added generator and generated for downTo() extension functions for numbers.
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko 3dfb510a62 Regenerated JavaScript stubs. 2012-08-08 14:48:03 +04:00
James Strachan 713a2d3bf0 enabled more tests now that KT-2520 is fixed 2012-08-03 09:00:25 +01:00