Don't write JetValueParameter to the bytecode

The class itself can't be deleted at this point because it's used in the old
bytecode and tools (e.g. proguard) will complain if they can't find it in the
new runtime
This commit is contained in:
Alexander Udalov
2015-07-17 00:36:30 +03:00
parent 6ab1c6bfb3
commit 95be8b11f5
4 changed files with 5 additions and 167 deletions
@@ -21,15 +21,16 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @deprecated This class is no longer used in the bytecode produced by Kotlin compiler
* and exists in the Kotlin Java Runtime only for compatibility with the older code.
* It will be deleted completely after M13.
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Deprecated
public @interface JetValueParameter {
String name();
/**
* This is a hack for Kara
* @return <code>"?"</code> if the type of this parameter is nullable, an empty string otherwise
*/
String type() default "";
}