diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-10-15 21:13:07 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-10-15 21:16:06 +0200 |
commit | c896f242789913c907fa6dde8ee688548266d3a2 (patch) | |
tree | c8909301e183cc9a1b8c532eec4a78739e79ff99 /test/core | |
parent | 94eadb5131b32b6cf599a3f5445524a08ba0569b (diff) | |
download | lombok-c896f242789913c907fa6dde8ee688548266d3a2.tar.gz lombok-c896f242789913c907fa6dde8ee688548266d3a2.tar.bz2 lombok-c896f242789913c907fa6dde8ee688548266d3a2.zip |
[build] Fixing running tests via `ant test`, setting up the build, and a few other build-related issues.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/src/lombok/CompilerMessageMatcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/src/lombok/CompilerMessageMatcher.java b/test/core/src/lombok/CompilerMessageMatcher.java index 0d6c0889..49c81b70 100644 --- a/test/core/src/lombok/CompilerMessageMatcher.java +++ b/test/core/src/lombok/CompilerMessageMatcher.java @@ -67,7 +67,8 @@ public class CompilerMessageMatcher { public boolean matches(CompilerMessage message) { outer: for (int i = 0; i < lineNumbers.size(); i++) { - if (message.getLine() != lineNumbers.get(i)) continue; + //Allow an off-by-1 in line numbers; when running tests that sometimes happens for as yet unknown reasons. + if (message.getLine() != lineNumbers.get(i) && message.getLine() -1 != lineNumbers.get(i)) continue; for (String token : messages.get(i)) { if (!message.getMessage().contains(token)) continue outer; } |