mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-86945 'Redundant type cast' and 'Constant conditions & exceptions' inspections
This commit is contained in:
+4
@@ -147,6 +147,10 @@ public class StandardInstructionVisitor extends InstructionVisitor {
|
||||
}
|
||||
}
|
||||
|
||||
if (instruction.getCastTo() instanceof PsiPrimitiveType) {
|
||||
memState.push(runner.getFactory().getBoxedFactory().createUnboxed(memState.pop()));
|
||||
}
|
||||
|
||||
return nextInstruction(instruction, runner, memState);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user