
com.develhack.lombok.javac.handlers.assertion.NonemptyHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develhacked-lombok Show documentation
Show all versions of develhacked-lombok Show documentation
The library enhancing Java classes at compilation by annotations that contained in the Develhack Core Library.
The newest version!
package com.develhack.lombok.javac.handlers.assertion;
import lombok.javac.JavacAnnotationHandler;
import org.mangosdk.spi.ProviderFor;
import com.develhack.annotation.assertion.Nonempty;
import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
@ProviderFor(JavacAnnotationHandler.class)
public class NonemptyHandler extends AbstractAssertionHandler {
public NonemptyHandler() {
super(Nonempty.class);
}
@Override
protected String getCheckMethodName() {
return nullable ? "checkNonemptyIfNonnull" : "checkNonempty";
}
@Override
protected boolean checkVariableType(JCVariableDecl variable) {
return checkReferenceType(variable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy