Don't break the world if enum in annotation isn't found
This commit is contained in:
@@ -50,4 +50,9 @@ public class ErrorValue implements CompileTimeConstant<Void> {
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -385,7 +385,8 @@ public class ErrorUtils {
|
||||
return createErrorType(value + " is not allowed here", value.getType().getMemberScope());
|
||||
}
|
||||
|
||||
public static ClassifierDescriptor getErrorClass() {
|
||||
@NotNull
|
||||
public static ClassDescriptor getErrorClass() {
|
||||
return ERROR_CLASS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user