Make CLASS default class kind in binary metadata

Don't write the kind to the class file if it's CLASS to save some bytes
This commit is contained in:
Alexander Udalov
2015-06-26 21:25:20 +03:00
parent b0e963bf34
commit f9afb4f95b
3 changed files with 23 additions and 8 deletions
@@ -23,7 +23,7 @@ import java.lang.annotation.RetentionPolicy;
public @interface KotlinClass {
int abiVersion();
Kind kind();
Kind kind() default Kind.CLASS;
String[] data();
@@ -31,7 +31,7 @@ public @interface KotlinClass {
CLASS,
/**
* A class has this kind if and only if its first non-class container is not a package.
* A class has kind LOCAL_CLASS if and only if it's not an anonymous object and its first non-class container is not a package.
*/
LOCAL_CLASS,