(String line)
| 351 | } |
| 352 | |
| 353 | private static Action.Kind parseKind(String line) { |
| 354 | if(line.equals(">>>")) { |
| 355 | return Action.Kind.INSERT; |
| 356 | } else if(line.equals("<<<")) { |
| 357 | return Action.Kind.REMOVE; |
| 358 | } else { |
| 359 | throw new IllegalArgumentException("invalid file"); |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | private static Error parseError(String line) { |
| 364 | String[] split = line.split(" "); |