rename @JetSignature to @JetClass, better constants in StdlibNames
This commit is contained in:
committed by
Nikolay Krasko
parent
c90a6263a1
commit
08647b4ae7
@@ -11,7 +11,7 @@ import java.util.*;
|
||||
* @url http://confluence.jetbrains.net/display/JET/Jet+Signatures
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface JetSignature {
|
||||
String value();
|
||||
public @interface JetClass {
|
||||
String signature();
|
||||
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.jet.rt;
|
||||
|
||||
import jet.typeinfo.JetSignature;
|
||||
import jet.typeinfo.JetClass;
|
||||
import jet.typeinfo.TypeInfo;
|
||||
import jet.typeinfo.TypeInfoProjection;
|
||||
import jet.typeinfo.TypeInfoVariance;
|
||||
@@ -51,9 +51,9 @@ class TypeInfoParser {
|
||||
return signature;
|
||||
}
|
||||
|
||||
JetSignature annotation = (JetSignature) klass.getAnnotation(JetSignature.class);
|
||||
JetClass annotation = (JetClass) klass.getAnnotation(JetClass.class);
|
||||
if(annotation != null) {
|
||||
String value = annotation.value();
|
||||
String value = annotation.signature();
|
||||
if(value != null) {
|
||||
Class enclosingClass = klass.getEnclosingClass();
|
||||
Signature signature = new Signature(klass);
|
||||
|
||||
Reference in New Issue
Block a user