diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-04 23:45:06 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-05 00:00:08 +0100 |
commit | a92117574e10a7949bb0262786698d138056360b (patch) | |
tree | cc5b3729f777e4a89006e7bd5aa5e98d17235e1d /src/core | |
parent | 003832670e5115fc0cd93f46f4f48482048ee078 (diff) | |
download | lombok-a92117574e10a7949bb0262786698d138056360b.tar.gz lombok-a92117574e10a7949bb0262786698d138056360b.tar.bz2 lombok-a92117574e10a7949bb0262786698d138056360b.zip |
Working around newly introduced lint errors in javac9.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/CapturingDiagnosticListener.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lombok/javac/CapturingDiagnosticListener.java b/src/core/lombok/javac/CapturingDiagnosticListener.java index a0ac6adc..0e64ed8d 100644 --- a/src/core/lombok/javac/CapturingDiagnosticListener.java +++ b/src/core/lombok/javac/CapturingDiagnosticListener.java @@ -52,6 +52,10 @@ public class CapturingDiagnosticListener implements DiagnosticListener<JavaFileO "^" + Pattern.quote(file.getAbsolutePath()) + "\\s*:\\s*\\d+\\s*:\\s*(?:warning:\\s*)?(.*)$", Pattern.DOTALL).matcher(msg); if (m.matches()) msg = m.group(1); + if (msg.equals("deprecated item is not annotated with @Deprecated")) { + // This is new in JDK9; prior to that you don't see this. We shall ignore these. + return; + } messages.add(new CompilerMessage(d.getLineNumber(), d.getStartPosition(), d.getKind() == Kind.ERROR, msg)); } |