Record COMPILE_TIME_INITIALIZER for all final variables
This commit is contained in:
@@ -24,11 +24,20 @@ import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns;
|
||||
|
||||
public abstract class CompileTimeConstant<T> {
|
||||
protected final T value;
|
||||
private boolean canBeUsedInAnnotations = true;
|
||||
|
||||
protected CompileTimeConstant(T value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean canBeUsedInAnnotations() {
|
||||
return canBeUsedInAnnotations;
|
||||
}
|
||||
|
||||
public void setCanBeUsedInAnnotations(boolean canBeUsedInAnnotations) {
|
||||
this.canBeUsedInAnnotations = canBeUsedInAnnotations;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public T getValue() {
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user