瀏覽代碼

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 年之前
父節點
當前提交
a675b659cd

+ 2
- 2
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 ) { };
if (trimLeftIndex>=extract.length) return new String(extract)+"\n";
System.arraycopy(
extract,
trimLeftIndex - 1,

Loading…
取消
儲存