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 Chernikov
4e18e91463
Attempt to fix EA-82064:
...
"java.lang.NoClassDefFoundError: Could not initialize class kotlin.Unit"
2016-08-10 14:18:03 +02:00
Zalim Bashorov
9ece62fa0f
JS backend: fix runtime type checking for interfaces
2016-08-10 15:04:27 +03:00
Zalim Bashorov
060255e8f7
Fix printing file size of generated js files for TeamCity statistics
2016-08-10 15:03:56 +03:00
Dmitry Jemerov
f08a7f14e0
workaround for IDEA's issue that throws an exception when using union() on a LocalSearchScope with no elements (EA-82063 - AIOOBE: GlobalSearchScope.union)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
180f70b573
don't use document for checking whether a folding region is one-line, use only PSI, as it may not correspond to the state of the document (EA-81838 - IOOBE: LineSet.findLineIndex)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
a4aa3cdf57
don't crash if we don't have a descriptor for the declaration under caret (EA-86248 - KNPE: KDocNameCompletionSession.doComplete)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
ddb91cc0d9
correct fix for showing dialog from popup callback (EA-86138)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
5c113a4237
correct fix for invoking 'safe delete' refactoring outside of write action (EA-80766 - E: BaseRefactoringProcessor.run)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
5d92f655f7
one more missing read action in Find Usages (EA-81276 - assert: SharedImplUtil.getParent)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
f9d3804111
check element validity in KotlinSelectInProjectViewProvider (EA-84485 - PIEAE: OwnBufferLeafPsiElement.getContainingFile)
2016-08-10 13:26:13 +02:00
Dmitry Jemerov
8632790446
don't check intention availability on PsiFile (EA-85587 - assert: SharedPsiElementImplUtil.getChildIndex)
2016-08-10 13:26:13 +02:00
Mikhail Glukhikh
d21061ff60
CAST_NEVER_SUCCEEDS: some type alias tests (1.1 only!)
2016-08-10 12:23:09 +03:00
Mikhail Glukhikh
687698da9a
Do not report USELESS_CAST when casting null to nullable (special case)
2016-08-10 12:23:02 +03:00
Mikhail Glukhikh
8d537d294a
Minor: imports removed, formatting
2016-08-10 12:22:58 +03:00
Mikhail Glukhikh
098520de64
CAST_NEVER_SUCCEEDS: do not report when casting nullable to nullable #KT-260 Fixed
2016-08-10 12:22:53 +03:00
Alexey Sedunov
2b44335c27
Presentation: Render valid description for type aliases
2016-08-10 11:45:41 +03:00
Alexey Sedunov
3475a1fd1f
Introduce Property: Fix duplicate count in popup window
...
#KT-13395 Fixed
2016-08-10 11:45:41 +03:00
Alexey Sedunov
ab7d48a34e
Light Classes: Do not compute annotations for light elements with invalid
...
origin (possible fix for KT-13199)
2016-08-10 11:45:40 +03:00
Alexey Sedunov
4ab25bd0bb
Move: Quote package name (if necessary) when moving declarations to new file
...
#KT-13385 Fixed
2016-08-10 11:45:39 +03:00
Alexey Sedunov
b793252a5f
Extract Function: Skip callable reference selectors
...
#KT-13218 Fixed
2016-08-10 11:45:38 +03:00
Alexey Sedunov
6e3d1d726e
Create from Usage: Do not suggest creating annotations/enum classes for unresolved type parameter bounds
...
#KT-13364 Fixed
2016-08-10 11:45:37 +03:00
Alexey Sedunov
1b546d18ff
Override/Implement Members: Do not expand type aliases in the generated members. Retain abbreviated types during flexible type approximation
...
#KT-13244 Fixed
2016-08-10 11:45:36 +03:00
Alexey Sedunov
1a4ff598e3
Override/Implement Members: Do not make return type non-nullable if base
...
return type is explicitly nullable
#KT-13383 Fixed
#KT-13379 Fixed
2016-08-10 11:45:35 +03:00
Alexey Sedunov
75573bd6a5
Quick Fixes: Use simple class name in "Change function return type" quickfix
...
#KT-12919 Fixed
2016-08-10 11:45:35 +03:00
Alexey Sedunov
f57c9279f9
Override/Implement Members: Support "Copy JavaDoc" options for library classes
...
#KT-12997 Fixed
2016-08-10 11:45:34 +03:00
Alexey Sedunov
8a9a3285de
Introduce Variable: Skip leading/trailing comments inside selection
...
#KT-13054 Fixed
2016-08-10 11:45:33 +03:00
Alexey Sedunov
00b6839e59
Introduce Variable: Retain entered name after changing "Specify type explicitly" option
...
#KT-13128 Fixed
2016-08-10 11:45:32 +03:00
Alexey Sedunov
792177f206
Extract Function: Extract Function: Fix generation of destructuring declarations
...
#KT-13010 Fixed
2016-08-10 11:45:31 +03:00
Alexey Sedunov
06e767279b
Extract Function/Parameter/Type Alias: Automatically quote declaration name when necessary
...
#KT-13157 Fixed
2016-08-10 11:45:30 +03:00
Alexey Sedunov
59a714ca5c
Presentation: Render function signature in RefactoringDescriptionLocation
...
#KT-12943 Fixed
2016-08-10 11:45:29 +03:00
Alexey Sedunov
892c8436f3
Introduce Variable: Do not suggest expressions without type
...
#KT-12922 Fixed
2016-08-10 11:45:28 +03:00
Alexey Sedunov
3cd35f8a3b
Rename: Fix function description in super method warning dialog
...
#KT-12945 Fixed
2016-08-10 11:45:27 +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
0ce4bce4a5
Changelog for 1.0.4: stdlib changes
2016-08-09 19:05:32 +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
Denis Zharkov
1df9724c0c
Refine stack frames markup calculation
...
It fixes VerifyError with coroutines on Dalvik happening because of
variables spilling before/after suspension point
BasicInterpreter from ASM does not distinct 'int' types from other
int-like types like 'byte' or 'boolean', neither do HotSpot and JVM spec.
But it seems like Dalvik does not follow it, and spilling
boolean value into an 'int' field fails with VerifyError on Android 4,
so it's necessary to distinct int types for variables spilling
#KT-13289 Fixed
2016-08-09 16:36:52 +03:00
Denis Zharkov
d8c3cefc7c
Extract backward analysis framework
2016-08-09 16:36:52 +03:00
Alexander Udalov
0d26087040
CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
...
Note that now "-no-stdlib" implies "-no-reflect".
#KT-13237 Fixed
2016-08-09 11:24:24 +03:00
Mikhail Glukhikh
30fd22499b
Test data fix (after cherry-pick from 1.0.4)
2016-08-09 10:32:15 +03:00
Mikhail Glukhikh
b668206aa7
Minor: test comment, relevant to KT-13322
...
(cherry picked from commit 7606b1d)
2016-08-09 10:28:49 +03:00
Mikhail Glukhikh
729de536de
Rewrite slice error removed for LEAKING_THIS #KT-13371 Fixed
...
Also EA-86478 fixed
(cherry picked from commit 5ac3126)
2016-08-09 10:28:40 +03:00