Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 import  javax.annotation.Nullable;
Created with IntelliJ IDEA. User: mati Date: 23/06/2013 Time: 12:15 An empty implementation of TofuCompiler, which normally should never be used but it is an implementation of Null Object Pattern, which may prevent an NPE
public class EmptyTofuCompiler implements TofuCompiler {
    public SoyTofu compile(final Collection<URLurls) {
        return null;
    public Optional<StringcompileToJsSrc(final URL template, @Nullable SoyMsgBundle soyMsgBundle) {
        return Optional.absent();
    public Collection<StringcompileToJsSrc(Collection<URLtemplates, @Nullable SoyMsgBundle soyMsgBundle) {
        return Lists.newArrayList();
New to GrepCode? Check out our FAQ X