mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertion
This commit is contained in:
@@ -98,7 +98,12 @@ public class JavaResolveCache {
|
||||
type = ConcurrencyUtil.cacheOrGet(myCalculatedTypes, expr, type);
|
||||
}
|
||||
if (!type.isValid()) {
|
||||
LOG.error("Type is invalid: " + type+"; expr: '"+expr+"' is "+(expr.isValid() ? "valid":"invalid"));
|
||||
if (expr.isValid()) {
|
||||
LOG.error("Type is invalid: " + type + "; expr: '" + expr + "' is valid");
|
||||
}
|
||||
else {
|
||||
LOG.error("Expression: '"+expr+"' is invalid, must not be used for getType()");
|
||||
}
|
||||
}
|
||||
return type == NULL_TYPE ? null : type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user