Ilya Gorbunov
c9ddea6d03
Breaking: File.(buffered)reader/writer now returns less specific InputStreamReader/OutputStreamReader and use UTF-8 encoding by default, allowing to specify different encoding with optional parameter.
...
File.printWriter supports specifying Charset and uses UTF-8 by default.
#KT-10454 Fixed
2016-01-14 18:31:55 +03:00
Ilya Gorbunov
a64c1ff0f4
Rename defaultBufferSize to DEFAULT_BUFFER_SIZE.
2016-01-14 18:31:43 +03:00
Ilya Gorbunov
d64882e19b
File.useLines and Reader.readLines.
2016-01-14 18:30:45 +03:00
Ilya Gorbunov
ddcafdd9b3
J2K: Avoid to convert to deprecated String methods, namely toByteArray.
2016-01-14 18:30:44 +03:00
Ilya Gorbunov
ac15807ba4
Deprecate functions taking charset name as string.
2016-01-14 18:30:42 +03:00
Ilya Gorbunov
68971e2162
Remove redundant JvmName annotations for Array.copyOf, copyOfRange
2016-01-14 18:30:41 +03:00
Ilya Gorbunov
b99e1111f6
Do not use out projection for Array where appropriate.
2016-01-14 18:30:40 +03:00
Ilya Gorbunov
eb5b5331fb
Minor: reorder invariant arrays of objects in generated code
2016-01-14 18:30:39 +03:00
Ilya Gorbunov
362e463b26
Preserve type projection for Array.requireNoNulls.
...
#KT-10039 Fixed
2016-01-14 18:30:37 +03:00
Ilya Gorbunov
90a33fb19c
Make return type more specific for File.inputStream and File.outputStream, for String.byteInputStream
2016-01-14 18:30:20 +03:00
Ilya Gorbunov
ea3a2eefe7
File.deleteRecursively returns true even if path specified by File does not exist.
...
False is returned only in case of incomplete deletion.
Distinguish situations when file was not deleted because it's vanished after listing and because of some other error.
2016-01-14 18:14:12 +03:00
Ilya Gorbunov
5e6489f1a2
Minor: refactor file utils test not to use 'assert' to make test assertions. Use assertTrue, assertFalse, assertEquals, assertFailsWith instead.
2016-01-14 18:14:11 +03:00
Ilya Gorbunov
3ee9c2b9d8
Introduce exitProcess(status) returning Nothing.
...
#KT-10441 Fixed
2016-01-14 18:14:10 +03:00
Valentin Kipyatkov
5a079defc7
"Rename on import" hides importing of the same symbol by other imports with the original name
2016-01-14 17:05:28 +03:00
Valentin Kipyatkov
47041885ca
Do not use incorrect import
2016-01-14 17:05:13 +03:00
Valentin Kipyatkov
866f3f189f
Minor
2016-01-14 17:05:13 +03:00
Valentin Kipyatkov
89843685c2
Renamed class
2016-01-14 17:05:13 +03:00
Dmitry Jemerov
af66af07a0
adapt move refactoring to new behavior of KtFile.getClasses()
2016-01-14 14:20:41 +01:00
Dmitry Jemerov
1bc4420734
implement KtFile.getClasses() in plugin (required to have coverage work, among other things)
2016-01-14 14:20:35 +01:00
Michael Bogdanov
607f32615f
Type uncapturing
2016-01-14 15:32:50 +03:00
Michael Bogdanov
2228cb6a9a
Rollback parameter descriptor propagation to CapturedTypeConstructor
2016-01-14 15:32:50 +03:00
Alexey Sedunov
6e5a2208c0
Misc: Partially revert cleanup ( 44138f499e) as accessing synthetic properties leads to IllegalAccessError
...
#KT-10653 Fixed
2016-01-14 13:55:11 +03:00
Alexey Sedunov
1d9bafe196
PSI Unifier: Fix matching of this-expressions
...
#KT-8293 Fixed
2016-01-14 13:55:10 +03:00
Alexey Sedunov
ed8674c0f9
Safe Delete: Skip usages inside of overriding to-be-deleted declarations
...
#KT-7253 Fixed
2016-01-14 13:55:09 +03:00
Alexey Sedunov
59bacd932a
Minor: Add test for KT-8295
2016-01-14 13:55:08 +03:00
Alexey Sedunov
e7de6400e5
Create from Usage: Make 'Create annotation' low-priority action
...
#KT-9116 Fixed
2016-01-14 13:55:07 +03:00
Alexey Sedunov
70a851fe44
Move/Change Package Directive Intention: Skip callee references to inner class constructors
...
#KT-10554 Fixed
2016-01-14 13:55:05 +03:00
Alexey Sedunov
73233b2e90
Change Variable Mutability Quick-Fix: Forbid on non-primary-constructor parameters
...
#KT-10601 Fixed
2016-01-14 13:55:03 +03:00
Alexey Sedunov
5a108c5cde
Generate equals/hashCode Action: Use Arrays.equals/Arrays.hashCode for properties of array types
...
#KT-10514 Fixed
2016-01-14 13:55:02 +03:00
Natalia Ukhorskaya
7b67eed3dd
Qoute package name if needed
...
#KT-10649 Fixed
2016-01-14 13:42:19 +03:00
Natalia Ukhorskaya
128440b16f
Use intention to simplify for in j2k
...
#KT-7157 Fixed
2016-01-14 13:41:54 +03:00
Natalia Ukhorskaya
ea3ba6f534
Intention to simplify for using destructing declaration
2016-01-14 13:41:45 +03:00
Natalia Ukhorskaya
5667a92472
Debugger: add breakpoint variant for line with lambda in init block
...
#KT-KT-1061 Fixed
2016-01-14 13:39:01 +03:00
Natalia Ukhorskaya
2b1d60397d
Object to lambda intention is inapplicable when reference to this is used
...
#KT-10202 In Progress
2016-01-14 13:39:00 +03:00
Natalia Ukhorskaya
41e7c3d70b
Debugger: generate package parts only for debug file
...
#KT-10126 Fixed
2016-01-14 13:38:59 +03:00
Mikhail Zarechenskiy
29af6586f2
Get rid of ContainerUtil usages in ide-common
2016-01-14 12:06:52 +03:00
Mikhail Zarechenskiy
dd11fa9320
Move logic related to expression occurrence searching to ide-common
2016-01-14 12:06:50 +03:00
Mikhail Zarechenskiy
bd57096b66
Move AnalyzerUtil to ide-common
2016-01-14 12:06:49 +03:00
Mikhail Zarechenskiy
bde556fc10
Move QuickFixUtil to ide-common
2016-01-14 12:06:47 +03:00
Mikhail Zarechenskiy
85b4f5d593
Move part of resolutionApi to ide-common
2016-01-14 12:06:45 +03:00
Mikhail Zarechenskiy
1523586717
Extract interface out from KotlinCacheService to provide separate implementation in Eclipse plugin
2016-01-14 12:06:44 +03:00
Dmitry Petrov
609ffc10a9
KT-10322, KT-10646, KT-10647:
...
- update diagnostic to (supposedly) more useful
- also report IMPLICIT_CAST_TO_ANY if expected type is DONT_CARE
(effectively "no expected type" for lambda expression).
2016-01-14 10:08:20 +03:00
Dmitry Petrov
f54de08073
KT-10646, KT-10647:
...
Move IMPLICIT_CAST_TO_UNIT_OR_ANY to ControlFlowInformationProvider
(where checks for 'if' and 'when' used as expressions are performed).
2016-01-14 10:08:20 +03:00
Ilya Gorbunov
f91c01919b
kotlin.test: 'fail' returns Nothing, 'assertFails' returns Throwable (not nullable).
...
Js tests now fail at the first failed assertion.
#KT-10289 Fixed
#KT-10369 Fixed
2016-01-14 06:03:40 +03:00
Dmitry Jemerov
8fdd8179b9
Workaround for KtEnumEntrySuperclassReferenceExpression which implements KtSimpleNameExpression in a weird way and can break Move refactoring (EA-75268 - assert: TextRange.<init>)
2016-01-13 20:28:39 +01:00
Zalim Bashorov
c1dbfee2a9
Don't fail when create IncrementalCacheImpl for target without output directory, and fail when try to use this info instead.
...
#KT-10505 Fixed
2016-01-13 21:37:36 +03:00
Zalim Bashorov
d9af9472f0
Don't fail when output directory not specified for "friend" build target
...
#KT-10505 Fixed
2016-01-13 21:09:06 +03:00
Zalim Bashorov
3df091e7cf
Report error when output directory not specified for build target
...
#KT-10505 Fixed
2016-01-13 21:09:05 +03:00
Mikhail Glukhikh
6b09c5dfae
Minor when missing cases renderer refactoring
2016-01-13 19:54:54 +03:00
Denis Zharkov
b8c79e689b
Make all nested inlined closure classes public
...
#KT-6987 Fixed
2016-01-13 19:41:59 +03:00