mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 10:15:22 +00:00
Code cleanup
This commit is contained in:
1 parent
8a3a656213
commit
a48c335c7d
1 file changed
+5
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user