Ilya Gorbunov
43ce8222fc
Soften deprecation level to ease migrations.
2015-12-14 21:05:13 +03:00
Ilya Gorbunov
9d753f24b7
Do not create regex to split path by directory separator char.
2015-12-14 06:31:44 +03:00
Ilya Gorbunov
a4f82a2dc4
Sensible behavior for File.startsWith and File.endsWith
2015-12-14 06:10:26 +03:00
Ilya Gorbunov
d2e22dc794
Fix tests on linux.
...
Add tests for File.startsWith
2015-12-14 06:10:24 +03:00
Ilya Gorbunov
645c78e2f4
Do not use assert in test, use assertTrue or assertEquals
2015-12-14 06:10:22 +03:00
Ilya Gorbunov
cb71e05c51
Deprecate File.directory, root, rootName as properties with unclear behavior.
2015-12-14 06:10:21 +03:00
Ilya Gorbunov
7c9b53c75c
Do not convert separatorsToSystem in file path extensions.
...
Do not require network host in network share root to contain dot.
File.root now is always non-null to be consistent with File.toComponents().root.
Introduce invariantSeparatorsPath property.
Deprecate relativeTo to make it return File later. Introduce toRelativeString instead.
Introduce relativeToOrNull and relativeToOrSelf extensions.
2015-12-14 06:10:18 +03:00
Ilya Gorbunov
52eb9e4276
Refactor FilePathComponents: rename properties, deprecate constructor, rename filePathComponents extension.
2015-12-14 06:09:55 +03:00
Ilya Gorbunov
8deefd56db
Rename FileTreeWalk public parameters and builder methods.
...
Directory filtering now is performed in newly introduced onEnter predicate.
2015-12-14 05:16:06 +03:00
Ilya Gorbunov
e24dbcefb6
Move all mutable state from FileTreeWalk to its iterator implementation, allowing this sequence to be iterated several times.
...
Introduce SingleFileState for single file walks.
Do not check isDirectory in DirectoryState constructor unless assertions are enabled.
2015-12-14 05:16:04 +03:00
Ilya Gorbunov
061803d7b1
Compare root of FilePathComponents according to case-sensitivity rules of current file system.
2015-12-14 05:16:02 +03:00
Ilya Gorbunov
4f2887df64
FileTreeWalk tests: do not remove failed directory from stack as leave is also called on failed dirs.
2015-12-14 05:16:01 +03:00
Ilya Gorbunov
162b152133
Improve File.relativeTo handling relative paths. Paths are normalized before calculating relative path. "x".relativeTo("../y") now is considered to have incompatible roots.
2015-12-14 05:15:59 +03:00
Ilya Gorbunov
9f5a972816
Improve resolve and resolveSibling for relative paths.
2015-12-14 05:15:57 +03:00
Ilya Gorbunov
923effe11d
Change FilePathComponents parsing for file with empty name to enhance finding relative path between relative paths.
2015-12-14 05:15:55 +03:00
Ilya Gorbunov
6301c707cd
Ensure resolveTo fails as expected.
...
Change UNC paths not to be misinterpreted on *nix.
2015-12-14 05:15:53 +03:00
Ilya Gorbunov
515d2cd3e7
FileTreeWalk.filter was dropped, use treeFilter otherwise filtering result becomes different.
...
Refactor walking tests.
2015-12-14 05:15:50 +03:00
Ilya Gorbunov
27551a8399
Make some io test classes non-nested as it's not supported by runners.
2015-12-14 05:15:48 +03:00
Ilya Gorbunov
33967a09f6
Unify minBy and maxBy for Maps with other families.
2015-12-14 04:56:47 +03:00
Ilya Gorbunov
33b366b9b9
Relax upper bound of T for minBy and maxBy to be nullable.
...
Swap type parameters of minBy and maxBy.
#KT-10099 Fixed
2015-12-14 04:56:45 +03:00
Ilya Gorbunov
f509937037
Move array constructors to builtins module back to kotlin package.
2015-12-14 04:29:11 +03:00
Ilya Gorbunov
5aff07561d
Move jvm annotations and class mapping intrinsics to runtime.jvm module to kotlin.jvm package.
...
Make annotationClass to be a property.
Deprecate with error javaClass property on KClass<T>
2015-12-14 03:51:07 +03:00
Ilya Gorbunov
2d85c437cd
Final moves: BigInteger and BigDecimal operations
2015-12-14 03:49:58 +03:00
Ilya Gorbunov
0ab33ab075
Final moves: map delegating accessors and timing utils, provide deprecated methods in the old place
2015-12-14 03:49:56 +03:00
Ilya Gorbunov
597f2c0a8c
Final moves: map delegating accessors and timing utils
2015-12-14 03:49:55 +03:00
Ilya Gorbunov
16fbdcf107
For migration: provide deprecated classes inheriting multifile facade classes moved out of kotlin package.
2015-12-14 03:49:53 +03:00
Ilya Gorbunov
ae3135c770
For migration: Make an option "Xmultifile-facades-open" for compiler to generate open multifile facade classes.
2015-12-14 03:49:51 +03:00
Ilya Gorbunov
594d981094
Provide deprecated AbstractIterator in the old package kotlin.support.
2015-12-14 03:49:49 +03:00
Ilya Gorbunov
91b920f18e
Move IndexedValue, IndexingIterable and IndexingIterator back to kotlin package
2015-12-14 03:49:48 +03:00
Ilya Gorbunov
dd2ae15531
Move code between packages.
2015-12-14 03:49:45 +03:00
Ilya Gorbunov
81e7826568
Move generated code between packages.
2015-12-14 03:49:43 +03:00
Alexander Udalov
477e25ae2f
Remove Intrinsic annotation from *arrayOf functions
2015-12-14 03:49:41 +03:00
Ilya Gorbunov
dc70c0d31e
Move sequence interface definition to a separate file.
...
Merge SequnceJVM content into Sequences.
2015-12-05 02:40:27 +03:00
Ilya Gorbunov
a15ca7c374
Minor: rename file with sequences
2015-12-05 02:40:25 +03:00
Ilya Gorbunov
b7a50b333e
Better replacement for containsAll, removeAll, retainAll with incompatible types.
2015-12-01 20:35:46 +03:00
Stanislav Erokhin
bc49825f55
Fix testLib test
2015-12-01 15:38:01 +03:00
Denis Zharkov
ddb67d6c9c
Support JvmSuppressWildcards and JvmWildcard annotations
...
#KT-9898 Fixed
2015-12-01 08:21:00 +03:00
Ilya Gorbunov
0ffce06356
Hide toMap with keySelector
...
#KT-6657
2015-12-01 01:18:46 +03:00
Ilya Gorbunov
ea60ab74a7
Replace deprecated toMap usages with toMapBy
2015-12-01 01:18:44 +03:00
Ilya Gorbunov
f107559a3c
Docs: proper pluralization of 'entry'
2015-12-01 01:18:21 +03:00
Ilya Gorbunov
6ca647aecd
Minor: cleanup asSequence() documentation.
2015-12-01 01:18:19 +03:00
Ilya Gorbunov
f596d9ac23
Provide asIterable also for CharSequences, Maps and Iterables.
...
KT-10152 Fixed
2015-12-01 01:18:18 +03:00
Alexander Udalov
db2521ee67
Rework TestlibTest, use JUnit console runner instead of manual suite
...
The problem with the manually created suite was that it was created in setUp()
and so a lot of the hard work (compilation, test case lookup) was happening in
setUp(). If any exception is thrown in setUp(), tearDown() is not called,
leaving the application (~9000+ subsequent tests) in the inconsistent state.
Support JUnit 4 tests via JUnit4TestAdapter. Previously only a small number of
test classes were actually run because this test was looking only for JUnit 3
testcases.
Delete FilesTest#relativePath because it was testing a deprecated function
and was failing if run from the project root
2015-11-30 18:58:00 +03:00
Ilya Gorbunov
f7a780f32c
Extension contains for ranges: rename parameter item to value.
2015-11-30 14:12:11 +03:00
Ilya Gorbunov
661e288362
Introduce 'step' property in progressions instead of 'increment'
2015-11-30 14:12:05 +03:00
Ilya Gorbunov
0a47d1cac2
Restore deprecated InputStream.iterator() with a replacement.
2015-11-29 04:38:28 +03:00
Ilya Gorbunov
941167e241
Revert "Drop deprecated toGenerator and toLinkedList." until RC
2015-11-29 04:37:45 +03:00
Ilya Gorbunov
f8fe3e6c1d
Restore dropped hidden declarations for binary compatibility until RC.
2015-11-29 04:37:35 +03:00
Ilya Gorbunov
54b415593a
Replacement upcasts parameter to the most specific supertype in case of contains, indexOf, lastIndexOf, remove, get, containsKey, containsValue.
2015-11-28 07:21:38 +03:00
Ilya Gorbunov
de86e90103
Generate indexOf and lastIndexOf extensions for List.
2015-11-28 07:20:27 +03:00