mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-dfa] Avoid linking traps in ReturnInstruction (EA-264470)
GitOrigin-RevId: d6a1d189f9ed8f0fb0a8a6f5f87e8a432def60e6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
48dbe8fad4
commit
744d868589
+6
-2
@@ -27,14 +27,18 @@ public class ReturnInstruction extends ControlTransferInstruction {
|
||||
private final PsiElement myAnchor;
|
||||
|
||||
public ReturnInstruction(@NotNull DfaControlTransferValue transfer, @Nullable PsiElement anchor) {
|
||||
super(transfer);
|
||||
this(transfer, anchor, true);
|
||||
}
|
||||
|
||||
private ReturnInstruction(@NotNull DfaControlTransferValue transfer, @Nullable PsiElement anchor, boolean linkTraps) {
|
||||
super(transfer, linkTraps);
|
||||
myAnchor = anchor;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Instruction bindToFactory(@NotNull DfaValueFactory factory) {
|
||||
var instruction = new ReturnInstruction(getTransfer().bindToFactory(factory), myAnchor);
|
||||
var instruction = new ReturnInstruction(getTransfer().bindToFactory(factory), myAnchor, false);
|
||||
instruction.setIndex(getIndex());
|
||||
return instruction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user