Code clean

This commit is contained in:
Michael Bogdanov
2015-09-04 15:39:51 +03:00
parent 20bb9963b3
commit 2ca9b3ae0e
13 changed files with 15 additions and 42 deletions
@@ -32,7 +32,7 @@ public class ReflectionFactoryImpl extends ReflectionFactory {
@Override
public KPackage createKotlinPackage(Class javaClass) {
return createKotlinPackage(javaClass, "undefined");
return createKotlinPackage(javaClass, "main");
}
@Override
@@ -92,7 +92,7 @@ public val KType.javaType: Type
* See the [Kotlin language documentation](http://kotlinlang.org/docs/reference/java-interop.html#package-level-functions)
* for more information.
*/
@deprecated("After package refactoring it would be impossible to retrieve package by class")
@deprecated("After dropping old package facades it would be impossible to retrieve package by java class")
public val Class<*>.kotlinPackage: KPackage?
get() = if (getSimpleName().endsWith("Package") &&
getAnnotation(javaClass<kotlin.jvm.internal.KotlinPackage>()) != null) {