Skip to content

Commit

Permalink
comment out unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 committed Dec 18, 2022
1 parent 3d24db2 commit 5018532
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import jd.core.model.instruction.bytecode.instruction.UnaryOperatorInstruction;
import jd.core.model.instruction.fast.FastConstants;
import jd.core.model.instruction.fast.instruction.FastDeclaration;
import jd.core.model.instruction.fast.instruction.FastSynchronized;

public final class MaxLineNumberVisitor
{
Expand Down Expand Up @@ -252,12 +251,13 @@ public static int visit(Instruction instruction)
case ByteCodeConstants.TERNARYOP:
maxLineNumber = visit(((TernaryOperator)instruction).getValue2());
break;
case FastConstants.SYNCHRONIZED:
List<Instruction> instructions = ((FastSynchronized)instruction).getInstructions();
if (instructions != null && !instructions.isEmpty()) {
maxLineNumber = visit(instructions.get(instructions.size() - 1));
}
break;
// TODO check whether this necessary
// case FastConstants.SYNCHRONIZED:
// List<Instruction> instructions = ((FastSynchronized)instruction).getInstructions();
// if (instructions != null && !instructions.isEmpty()) {
// maxLineNumber = visit(instructions.get(instructions.size() - 1));
// }
// break;
}

// Autre curieux bug : les constantes finales passees en parametres
Expand Down

0 comments on commit 5018532

Please sign in to comment.