From 63894b98dd648ab5b83dd7bc57defb1dbcfd97ae Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 25 Jun 2009 05:24:42 +0200 Subject: Heh, on errors you'd never actually see any message, just the exception type. Whoops. --- src/lombok/javac/HandlerLibrary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lombok/javac/HandlerLibrary.java b/src/lombok/javac/HandlerLibrary.java index ab5388d3..20cfed21 100644 --- a/src/lombok/javac/HandlerLibrary.java +++ b/src/lombok/javac/HandlerLibrary.java @@ -83,7 +83,7 @@ public class HandlerLibrary { } public void javacWarning(String message, Throwable t) { - messager.printMessage(Diagnostic.Kind.WARNING, message + t == null ? "" : (": " + t)); + messager.printMessage(Diagnostic.Kind.WARNING, message + (t == null ? "" : (": " + t))); } public void javacError(String message) { @@ -91,7 +91,7 @@ public class HandlerLibrary { } public void javacError(String message, Throwable t) { - messager.printMessage(Diagnostic.Kind.ERROR, message + t == null ? "" : (": " + t)); + messager.printMessage(Diagnostic.Kind.ERROR, message + (t == null ? "" : (": " + t))); } private static void loadVisitorHandlers(HandlerLibrary lib) { -- cgit