Skip to content

Commit

Permalink
Bug fixed when parsing '-m=method_name:method_definition_line'. Index…
Browse files Browse the repository at this point in the history
…OutOfBound exception was thrown before.
  • Loading branch information
rdegiovanni committed Oct 26, 2022
1 parent 5e30044 commit a18fc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ else if (args[i].startsWith("-m=")) {
if (method.contains(":")) {
String [] ml = method.split(":");
method = ml[0];
line = Integer.parseInt(ml[2]);
line = Integer.parseInt(ml[1]);
}
methods.add(method);
methodLines.add(line);
Expand Down

0 comments on commit a18fc5d

Please sign in to comment.