From 761a9aba863f433e6925697f9da2ab3e0bc09d35 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Sun, 27 Mar 2016 21:44:33 +0200 Subject: [PATCH] ECS: get rid of broken overlap check --- java/src/processing/mode/java/pdex/SourceMapping.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/java/src/processing/mode/java/pdex/SourceMapping.java b/java/src/processing/mode/java/pdex/SourceMapping.java index a33b5e62d..8991f3af0 100644 --- a/java/src/processing/mode/java/pdex/SourceMapping.java +++ b/java/src/processing/mode/java/pdex/SourceMapping.java @@ -85,15 +85,7 @@ public class SourceMapping { // Edits sorted by output offsets Collections.sort(outEdits, OUTPUT_OFFSET_COMP); - // Check input edits for overlaps - for (int i = 0, lastEnd = 0; i < editCount; i++) { - Edit ch = inEdits.get(i); - if (ch.fromOffset < lastEnd) { - String error = "Edits overlap in input! " + inEdits.get(i - 1) + ", " + ch; - throw new IndexOutOfBoundsException(error); - } - lastEnd = ch.fromOffset + ch.fromLength; - } + // TODO: add some validation // Input ListIterator inIt = inEdits.listIterator();