Mikhael Bogdanov
db59e916fb
Inline utility method
2018-04-03 19:18:18 +02:00
Mikhael Bogdanov
3f5fea05de
Write 'RequireKotlin' annotation on @JvmDefault members
2018-04-03 19:18:17 +02:00
Mikhael Bogdanov
23e8adb793
Add custom diagnostic checker for @JvmDefault annotation
2018-04-03 19:18:17 +02:00
Mikhael Bogdanov
89f22e69b4
Relocate @JvmDefault to stdlib module
2018-04-03 19:18:16 +02:00
Mikhael Bogdanov
38f8924ae3
Update test data. Use simple ''@JvmDefault' instead full qualifier
2018-04-03 19:18:15 +02:00
Mikhael Bogdanov
2a8041e77e
Check method abstractness during bridge generation per method not interface
2018-04-03 19:18:14 +02:00
Mikhael Bogdanov
f290b325ee
Remove @JvmDefault members from delegation
2018-04-03 19:18:14 +02:00
Mikhael Bogdanov
d84a15c0f6
Support inline for private @JvmDefault members
2018-04-03 19:18:13 +02:00
Mikhael Bogdanov
affe445955
Minor.Reformat
2018-04-03 19:18:12 +02:00
Mikhael Bogdanov
308283e52e
Support synthetic accessors for @JvmDefault members
2018-04-03 19:18:12 +02:00
Mikhael Bogdanov
1acd5642ce
Minor.Reformat
2018-04-03 19:18:11 +02:00
Mikhael Bogdanov
1d3e57acee
Add @JvmDefault diagnostics
2018-04-03 19:18:10 +02:00
Mikhael Bogdanov
63afd37cdd
Remove unused parameters, compiler keys and obsolete code
2018-04-03 19:18:10 +02:00
Mikhael Bogdanov
fe45eb2a81
Initial support of @JvmDefault
2018-04-03 19:18:09 +02:00
Mikhael Bogdanov
e885195ee1
Add @JvmDefault annotation
2018-04-03 19:18:08 +02:00
Mikhael Bogdanov
5830f99bce
Remove unused test data
2018-04-03 19:18:08 +02:00
Mikhael Bogdanov
c143480727
Remove wrong directive
...
Similar test exists under 'defaults' foldes
2018-04-03 19:18:07 +02:00
Mikhael Bogdanov
b337b9ea8d
Specify idea.home.path for java 8 tests
...
Default discovery mechanism points to wrong location
2018-04-03 19:18:06 +02:00
Ilmir Usmanov
eb81c205c7
Replace CHECKCAST kotlin/Unit with ARETURN for tail call optimization
...
Sometimes instead of {POP, GETSTATIC Unit.INSTANCE, ARETURN} sequence
the codegen emits {CHECKCAST Unit, ARETURN} sequence, which breaks tail
call optimization. By replacing CHECKCAST with ARETURN we eliminate
this issue.
#KT-19790: Fixed
2018-04-03 20:04:18 +03:00
Ilmir Usmanov
7b2de2de5e
Add regression test for KT-20744
...
#KT-20744: Obsolete
2018-04-03 20:02:02 +03:00
Toshiaki Kameyama
2d4ef8d1e6
Allow "add constructor invocation" for sealed top-level inheritors
...
So #KT-23320 Fixed
2018-04-03 19:49:32 +03:00
Mikhail Glukhikh
d54c57f9df
Minor refactoring: get rid of js.getJetTypeFqName usage in intention
2018-04-03 19:49:32 +03:00
Toshiaki Kameyama
488e5e9f60
Do not suggest "redundant toInt() call" for comparison receiver
...
So #KT-23133 Fixed
2018-04-03 19:49:31 +03:00
Toshiaki Kameyama
f91819ace7
"Simplify boolean expression": handle Boolean? comparison correctly
...
So #KT-23377 Fixed
2018-04-03 19:49:31 +03:00
Dmitry Jemerov
a495c2e5ea
Don't run analysis in SpecifyTypeExplicitlyIntention.isAvailable()
...
If type is invalid, show error hint when action is invoked
2018-04-03 18:37:33 +02:00
Mikhail Glukhikh
6d9457853e
Fix handling of characters in "convert to string template"
...
So #KT-23045 Fixed
So #KT-23046 Fixed
2018-04-03 18:26:25 +03:00
Alexander Udalov
d0e99e9a3f
Fix NPE from JarURLConnection.getUseCaches when loading compiler plugins
...
#KT-22513 Fixed
2018-04-03 16:55:48 +02:00
Mikhail Glukhikh
2125c42328
Make DeprecatedCallableAddReplaceWithInspection applicability based
...
Removes intention version of the same thing
Includes some optimization of 'Deprecated' annotation detection
2018-04-03 17:46:27 +03:00
Mikhail Glukhikh
ab973b2ff0
Fix several false positives and make safer "redundant companion ref"
...
Don't report it on an import directive #KT-23520 Fixed
Don't report it if companion nested class is referenced #KT-23519 Fixed
Check companion reference both by descriptor and by name
2018-04-03 17:45:14 +03:00
Mikhail Glukhikh
23488fac56
Optimization: RedundantCompanionReferenceInspection
2018-04-03 17:30:46 +03:00
Alexander Udalov
964bf503a6
Fix warning about kotlin-reflect-api bundling Kotlin Runtime
...
This fixes the "Some JAR files in the classpath have the Kotlin Runtime
library bundled into them" warning when compiling all modules that
depend on kotlin-reflect-api. This warning is reported on jars in the
classpath which look like standard library artifacts, but in fact are
not because their manifest does not say so. With this change, we're now
writing the manifest of standard library artifacts to the resulting jar
of kotlin-reflect-api, with the standard library component name
"internal" (in fact, it doesn't affect anything here, any name would be
OK) to make the compiler believe that this is actually a standard
library jar
2018-04-03 13:18:56 +02:00
Nicolay Mitropolsky
14ce13315c
Uast: wrapping expression bodies with return and code block (#KT-23557)
2018-04-03 14:10:01 +03:00
Mikhail Glukhikh
66d134ef5c
"Can be private" inspection: don't analyze data class parameters
...
So #KT-23566 Fixed
2018-04-03 13:44:37 +03:00
Yan Zhulanow
dc3cd01fad
Kapt: Find the right annotation descriptor in case of repeatable annotations (#KT-23427)
2018-04-03 00:16:54 +03:00
Yan Zhulanow
4cab250f72
Pill: Add marker option for JUnit3RunnerWithInners test runner
2018-04-02 19:26:39 +03:00
Yan Zhulanow
46973bf1fe
Kapt: Do not escape cyrillic letters in stubs (#KT-23286)
2018-04-02 19:26:37 +03:00
Yan Zhulanow
ae3d574473
Pill: Support Android tests
2018-04-02 19:26:35 +03:00
Yan Zhulanow
ead7653f84
Minor: Fix Parcelable test data
2018-04-02 19:26:34 +03:00
Yan Zhulanow
78f2fe1eab
Pill: Add idea-android-output-parser module to JPS model
2018-04-02 19:26:32 +03:00
Yan Zhulanow
5d9bdbec10
Tests: Disable inspections after test as Platform test framework requires
2018-04-02 19:26:30 +03:00
Yan Zhulanow
8f02d338a6
Android: Extract dependencies to Android plugin to extensions
2018-04-02 19:26:28 +03:00
Yan Zhulanow
39e9d28c63
Kapt: Support 'kapt.kotlin.generated' option in Maven
2018-04-02 19:26:26 +03:00
Yan Zhulanow
b1d7935d4a
Kapt: Annotation processors should not be discovered when the processor fqNames are set by user (#KT-22939)
2018-04-02 19:26:24 +03:00
Yan Zhulanow
dc8eb7446f
Kapt, minor: make Gradle API a bit cleaner
2018-04-02 19:18:45 +03:00
Yan Zhulanow
b3fbec9ec3
Fix EA-117939: Add a read action
2018-04-02 19:17:56 +03:00
Yan Zhulanow
81f3346329
Evaluate: Fix annotation value evaluation (#KT-23058)
2018-04-02 19:16:46 +03:00
Yan Zhulanow
4d13e38948
Show warning alert when the installed Kotlin plugin version is incompatible with the IDE platform version
2018-04-02 19:16:16 +03:00
Yan Zhulanow
b664177bd5
EA-100549: Throw an exception with an additional data instead of Java assertion
2018-04-02 19:16:03 +03:00
Yan Zhulanow
ec0abb0854
Fix EA-79206: Process only valid layout .xml files in Android Extensions
2018-04-02 19:15:48 +03:00
Yan Zhulanow
c8a1517190
Fix EA-113820: Accept also nullable elements in 'getRelevantElement()'
2018-04-02 19:15:33 +03:00