From a675b659cdc4da45383551e75c9472556c095f94 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 1 Jun 2005 16:12:58 +0000 Subject: Patch for 81846: Submitted by Attila Lendvai. Seems to just be hiding a problem where we report errors on empty lines though ?!? --- .../org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java index e2c296245..0b0deae50 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java @@ -80,8 +80,8 @@ public class EclipseAdapterUtils { char c; //remove all SPACE and TAB that begin the error message... int trimLeftIndex = 0; - while (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) { - }; + while ( (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) && trimLeftIndex=extract.length) return new String(extract)+"\n"; System.arraycopy( extract, trimLeftIndex - 1, -- cgit v1.2.3