8278825: Unused variable for diagnostic in Resolve

Reviewed-by: vromero
This commit is contained in:
Liam Miller-Cushon 2021-12-15 00:26:17 +00:00
parent 2def7e9132
commit 068a450954

View File

@ -2942,9 +2942,6 @@ public class Resolve {
sym.kind != WRONG_MTHS) {
sym = super.access(env, pos, location, sym);
} else {
final JCDiagnostic details = sym.kind == WRONG_MTH ?
((InapplicableSymbolError)sym.baseSymbol()).errCandidate().snd :
null;
sym = new DiamondError(sym, currentResolutionContext);
sym = accessMethod(sym, pos, site, names.init, true, argtypes, typeargtypes);
env.info.pendingResolutionPhase = currentResolutionContext.step;