Skip to content

Commit bf080e1

Browse files
committed
📝tableswitchも扱うようになったのでコメントを更新
1 parent 0de6df1 commit bf080e1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

jig-core/src/main/java/org/dddjava/jig/domain/model/data/members/instruction/BasicInstruction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
public enum BasicInstruction implements Instruction {
1414
/**
15-
* LOOKUPSWITCH
15+
* LOOKUPSWITCH, TABLESWITCH
1616
*/
1717
SWITCH,
1818
/**

jig-core/src/main/java/org/dddjava/jig/infrastructure/asm/AsmMethodVisitor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,13 @@ public void visitInvokeDynamicInsn(String name, String descriptor, Handle bootst
252252
@Override
253253
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
254254
logger.debug("visitLookupSwitchInsn {} {} {}", dflt, keys, labels);
255-
// switchがある
256255
methodInstructionCollector.add(BasicInstruction.SWITCH);
257256
super.visitLookupSwitchInsn(dflt, keys, labels);
258257
}
259258

260259
@Override
261260
public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) {
262261
logger.debug("visitTableSwitchInsn {} {} {} {}", min, max, dflt, labels);
263-
// switchがある
264262
methodInstructionCollector.add(BasicInstruction.SWITCH);
265263
super.visitTableSwitchInsn(min, max, dflt, labels);
266264
}

0 commit comments

Comments
 (0)