Browse Source

Patch for 81846: Submitted by Attila Lendvai. Seems to just be hiding a problem where we report errors on empty lines though ?!?

tags/PRE_ANDY
aclement 19 years ago
parent
commit
a675b659cd

+ 2
- 2
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java View File

char c; char c;
//remove all SPACE and TAB that begin the error message... //remove all SPACE and TAB that begin the error message...
int trimLeftIndex = 0; int trimLeftIndex = 0;
while (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) {
};
while ( (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) && trimLeftIndex<extract.length ) { };
if (trimLeftIndex>=extract.length) return new String(extract)+"\n";
System.arraycopy( System.arraycopy(
extract, extract,
trimLeftIndex - 1, trimLeftIndex - 1,

Loading…
Cancel
Save