Denis Zharkov
d362fa6eea
Minor. Use trailing lambda syntax in FixStackMethodTransformer
2017-05-16 11:38:59 +03:00
Dmitry Jemerov
675305fef3
Don't highlight 'this' references as deprecated
...
#KT-17613 Fixed
2017-05-15 14:57:52 +02:00
Yan Zhulanow
5d31e00d27
Allopen, Gradle: Fix JPS build on Windows (KT-17830)
...
Appears that plugin classpath can contain not only `File.separatorChar`, but also '/' on Windows. Without the proper handling of this case, Gradle importer may import the plugin JAR made for Gradle with shaded 'com.intellij' and cause an exception during the JPS build.
2017-05-15 14:42:01 +03:00
Sergey Mashkov
fd0578b564
KT-10028 Support parallel builds in maven
...
Mark mojo's as thread safe as users confirmed that all related errors
seem to be fixed
2017-05-15 12:55:33 +03:00
Alexander Udalov
3f5b8b3f68
Refactor JvmDependenciesIndexImpl.search
...
- use nullable type "T?" instead of HandleResult consisting of the found
value and the "should continue" flag
- inline all local functions because they don't add any value now
2017-05-15 12:17:46 +03:00
Alexander Udalov
939f969f12
Support .jar archives in friend paths (for internal visibility)
2017-05-15 12:17:45 +03:00
Mikhail Zarechenskiy
ac8fbce249
Fix false "useless cast" when target type is flexible
...
#KT-17820 Fixed
2017-05-15 11:24:39 +03:00
Mikhail Zarechenskiy
a8f1e32dec
Refactoring: move utils related to casts to CastDiagnosticUtil
2017-05-15 11:24:37 +03:00
Mikhail Zarechenskiy
b323d2b24a
Refactoring: extract method to detect redundant is out
2017-05-15 11:24:36 +03:00
Dmitry Neverov
cd24adac32
Detect redundant 'is' check
...
#KT-14187 Fixed
2017-05-15 11:24:35 +03:00
Mikhail Glukhikh
768e0fa738
Add forgotten KotlinAbstractUElement.hashCode()
2017-05-12 22:27:58 +03:00
Nikolay Krasko
c5a8001aa4
Revert generated formatter tests
2017-05-12 20:16:22 +03:00
Simon Ogorodnik
a0a6ef4f2e
Use ModalityState.any() for J2K post processing
...
#KT-17870 fixed
2017-05-12 17:53:50 +03:00
Nikolay Krasko
861cac5b52
Better indent in multi-line strings (KT-17849)
...
Inspired by MultilineStringEnterHandler from https://github.com/JetBrains/intellij-scala
https://github.com/JetBrains/intellij-scala/blob/edb741f344afff063197b406ca0c7c266a26c436/src/org/jetbrains/plugins/scala/editor/enterHandler/MultilineStringEnterHandler.scala
#KT-17849 Fixed
2017-05-12 17:34:05 +03:00
Nikolay Krasko
30639b0a5e
Allow injection in strings with interpolation (KT-6610)
...
#KT-6610 In Progress
2017-05-12 17:33:37 +03:00
Dmitry Jemerov
f53b9aa419
Improve diagnostics for EA-100849
...
KNPE: DeserializerForClassfileDecompilerKt.DeserializerForClassfileDecompiler
2017-05-12 12:34:54 +02:00
Dmitry Jemerov
db1f8c7541
EA-100074 - SOE: ExpressionsOfTypeProcessor.containsTypeOrDerivedInside
2017-05-12 12:33:46 +02:00
Dmitry Jemerov
ddcde3f688
EA-101095 NSEE: KotlinUsageToPsiElementProvider.getAppropriateParentFrom)
2017-05-12 12:33:45 +02:00
Dmitry Jemerov
4e58319d1b
Revert "Deprecated setting was used for import optimization on the fly. ( #1049 )"
...
This reverts commit 75d231cc37 .
The added API is available only in IDEA 2017.1.1, not in the original 2017.1 build.
2017-05-12 12:33:45 +02:00
Anton Bannykh
e098de5e33
JS: fix char boxing in elvis expressions (#KT-17700 fixed)
2017-05-11 21:31:38 +03:00
Mikhail Glukhikh
a1e00ed9f1
Don't suggest "if to ?." without else when used in expression position
2017-05-11 20:47:16 +03:00
Mikhail Glukhikh
326d850760
Use "if-then to" even for 'if (arg != null) arg' removing 'if'
2017-05-11 20:47:10 +03:00
Mikhail Glukhikh
977d8e1cd7
If to safe access: fix message when no dot calls are available
...
Now "Replace 'if' with safe cast" is suggested
2017-05-11 20:47:04 +03:00
Mikhail Glukhikh
a77390ccd6
Change both IfThenTo... inspections highlight level
...
Retain WEAK WARNING for null checks, one-liners,
and is checks without dot calls in main branch.
Set INFORMATION (no highlighting, just fix) for other cases.
Switch off both bound intentions.
So #KT-15076 Fixed
2017-05-11 20:46:51 +03:00
Mikhail Glukhikh
2d9a5afb15
Refactoring: convert problemHighlightType to function with parameter
2017-05-11 20:46:37 +03:00
Mikhail Glukhikh
d9a33af61e
Reduce range of IfThenTo... inspections to just 'if'
2017-05-11 20:46:31 +03:00
Mikhail Glukhikh
781a45c747
Minor refactoring: IfThenToSelectData.clausesReplaceableByElvis
2017-05-11 20:46:24 +03:00
Mikhail Glukhikh
f3ee5ea45f
IfThenToDoubleBang: fix AWT from writeAction problem
2017-05-11 20:46:17 +03:00
Mikhail Glukhikh
66c5717adc
Refactoring of IfThen: ToDoubleBang / ToElvis / ToSafeAccess
...
Some common actions were extracted to IfThenUtils.kt
Use consistent logic in all three intentions
Also fixes potential PSI consistency problems in conversions dot->safe calls
2017-05-11 20:46:11 +03:00
Dmitry Neverov
fd6d1520c7
Convert 'if' with 'is' check to 'as?' with safe call #KT-17054 Fixed
2017-05-11 20:46:05 +03:00
Mikhail Glukhikh
0361ed8c68
Refactoring: SelfTargetingIntention / IntentionBasedInspection
...
Remove complex logic which disables intention when bound inspection on
Add much simpler logic in SelfTargetingIntention.equals
2017-05-11 20:45:59 +03:00
Alexey Andreev
1900b20e6e
Implement inlining of Array constructor in JS BE
...
See KT-15456
2017-05-11 17:10:45 +03:00
Mikhail Glukhikh
6523f237a6
Test fix (I hope so) from parameter info group
2017-05-11 16:38:51 +03:00
Mikhael Bogdanov
97bcf9f538
Add default lambda inlining prototype
2017-05-11 11:06:47 +02:00
Mikhael Bogdanov
b7af4ac882
Add SKIP_INLINE_CHECK_IN directive to inline test framework
2017-05-11 11:06:47 +02:00
Mikhael Bogdanov
daf6768181
Add proper DefaultLambda initialization,
...
patch lambda related instructions in default method
Remove default lambda linked instructions from default method
2017-05-11 11:06:46 +02:00
Mikhael Bogdanov
ec066a06d8
Clean code after convertion to Kotlin
2017-05-11 11:06:45 +02:00
Mikhael Bogdanov
1e9ffe42b1
Convert MethodInliner.java to Kotlin
2017-05-11 11:06:44 +02:00
Mikhael Bogdanov
e34f934aba
Rename MethodInliner.java to MethodInliner.kt
2017-05-11 11:06:44 +02:00
Mikhael Bogdanov
f915192827
Minor. Clean and refactoring after convertion
2017-05-11 11:06:43 +02:00
Mikhael Bogdanov
3fe152aad3
Convert AnonymousObjectTransformer.java to Kotlin
2017-05-11 11:06:42 +02:00
Mikhael Bogdanov
36c43b630e
Rename AnonymousObjectTransformer.java to AnonymousObjectTransformer.kt
2017-05-11 11:06:41 +02:00
Mikhael Bogdanov
980414674a
Add default lambda parsing
2017-05-11 11:06:40 +02:00
Mikhael Bogdanov
70e550e984
Introduce ExpressionLambda and DefaultLambda abstractions,
...
extract common part to LambdaInfo
2017-05-11 11:06:40 +02:00
Mikhael Bogdanov
9c51392aff
Convert LambdaInfo.java to Kotlin
2017-05-11 11:06:39 +02:00
Mikhael Bogdanov
f8f4fc5de1
Rename LambdaInfo.java to LambdaInfo.kt
2017-05-11 11:06:38 +02:00
Sergey Igushkin
7097246866
Unify build output with Maven
...
* Added manifest properties to `gradle-tools` projects.
* Add `-kotlin-module` to free compiler args to make the module names
match the ones in Maven build
* Fixed path to the Groovy sources in `kotlin-gradle-plugin/pom.xml`
2017-05-10 20:15:08 +03:00
Sergey Igushkin
7030b89b7c
Fix rootDir mis-use in commonConfiguration.gradle:
...
replace with `kotlin_root`, that is set in the projects
2017-05-10 20:03:26 +03:00
Sergey Igushkin
c3ae37c6ce
Gradle build fixes & improvements:
...
* Fix Java not compiled in kotlin-gradle-plugin Kotlin source set
* Fix the integration tests running under Java 6
* Fix kotlin-gradle-subplugin-example not being installed -- needed
for a test
* Fix Android tests being always excluded
* Move versions out of `build.gradle` (x2) to a common `versions.gradle`
* Move JDK, dist and bootstrap to `commonConfiguration.gradle`
* Build `kotlin-gradle-plugin` with JDK_18
2017-05-10 20:03:26 +03:00
Sergey Igushkin
8e65b5f2c8
Gradle plugins migration to Gradle build
...
* Add gradle-tools subproject
* Add Gradle buildscripts to the related projects
* Remove the projects from the libraries pom.xml
* Move AndroidGradleWrapper.groovy to separate source root
* Changed artifact dependencies to project dependencies where needed
* Extract common configuration into commonConfiguration.gradle
* (convert functions to closures to be able to call them)
* Refactor DSL usage
* Replace `project.properties` with `findProperty`
* Unify Gradle wrapper between `libraries` and `gradle-tools`
(as a temporary solution, just made the wrapper files the same)
2017-05-10 20:03:26 +03:00