Don't break the world if enum in annotation isn't found

This commit is contained in:
Alexander Udalov
2013-09-05 18:17:37 +04:00
parent c8a5c9ef59
commit 9d2add81f8
9 changed files with 83 additions and 17 deletions
@@ -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;
}