diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-06 16:05:06 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-06 16:05:06 +0100 |
commit | a48c335c7d8f1b361b134110219af8b0d3610101 (patch) | |
tree | 9283c1fcdd263a29d73047d002cc97df0a0397ae /src/core/lombok/eclipse | |
parent | 8a3a656213605482bfa11f2efddf96dc1f47d16e (diff) | |
download | lombok-a48c335c7d8f1b361b134110219af8b0d3610101.tar.gz lombok-a48c335c7d8f1b361b134110219af8b0d3610101.tar.bz2 lombok-a48c335c7d8f1b361b134110219af8b0d3610101.zip |
Code cleanup
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleLog.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleLog.java b/src/core/lombok/eclipse/handlers/HandleLog.java index 5991fec0..23768226 100644 --- a/src/core/lombok/eclipse/handlers/HandleLog.java +++ b/src/core/lombok/eclipse/handlers/HandleLog.java @@ -47,11 +47,12 @@ import org.eclipse.jdt.internal.compiler.ast.TypeReference; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.mangosdk.spi.ProviderFor; -/** - * Handles the {@code lombok.HandleSneakyThrows} annotation for eclipse. - */ public class HandleLog { + private HandleLog() { + throw new UnsupportedOperationException(); + } + public static boolean processAnnotation(LoggingFramework framework, AnnotationValues<? extends java.lang.annotation.Annotation> annotation, Annotation source, EclipseNode annotationNode) { String loggingClassName = annotation.getRawExpression("value"); @@ -73,8 +74,7 @@ public class HandleLog { return false; } - MemberExistsResult fieldExists = fieldExists("log", owner); - if (fieldExists != MemberExistsResult.NOT_EXISTS) { + if (fieldExists("log", owner) != MemberExistsResult.NOT_EXISTS) { annotationNode.addWarning("Field 'log' already exists."); return true; } |