8278825: Unused variable for diagnostic in Resolve
Reviewed-by: vromero
This commit is contained in:
parent
2def7e9132
commit
068a450954
@ -2942,9 +2942,6 @@ public class Resolve {
|
|||||||
sym.kind != WRONG_MTHS) {
|
sym.kind != WRONG_MTHS) {
|
||||||
sym = super.access(env, pos, location, sym);
|
sym = super.access(env, pos, location, sym);
|
||||||
} else {
|
} else {
|
||||||
final JCDiagnostic details = sym.kind == WRONG_MTH ?
|
|
||||||
((InapplicableSymbolError)sym.baseSymbol()).errCandidate().snd :
|
|
||||||
null;
|
|
||||||
sym = new DiamondError(sym, currentResolutionContext);
|
sym = new DiamondError(sym, currentResolutionContext);
|
||||||
sym = accessMethod(sym, pos, site, names.init, true, argtypes, typeargtypes);
|
sym = accessMethod(sym, pos, site, names.init, true, argtypes, typeargtypes);
|
||||||
env.info.pendingResolutionPhase = currentResolutionContext.step;
|
env.info.pendingResolutionPhase = currentResolutionContext.step;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user