Skip to content

Commit

Permalink
Fixes based on review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
andyHa committed Sep 11, 2018
1 parent 336953d commit a0b5439
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions src/main/java/sirius/tagliatelle/Tagliatelle.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import sirius.kernel.cache.Cache;
import sirius.kernel.cache.CacheEntry;
import sirius.kernel.cache.CacheManager;
import sirius.kernel.commons.Explain;
import sirius.kernel.commons.MultiMap;
import sirius.kernel.commons.Strings;
import sirius.kernel.commons.Tuple;
Expand Down Expand Up @@ -347,8 +346,6 @@ private Template resolveFromCache(String path, Resource resource) {
return null;
}

@SuppressWarnings("squid:S2440")
@Explain("False positive")
private Template compileTemplate(String path, Resource resource, @Nullable CompilationContext parentContext)
throws CompileException {
CompilationContext compilationContext = createCompilationContext(path, resource, parentContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class RenderEmitterExpression implements Expression {
private InlineTemplateEmitter emitter;

/**
* Creates an expression with evaluates to the result of the given emitter.
* Creates an expression which evaluates to the result of the given emitter.
*
* @param emitter the emitter to wrap
*/
Expand Down
1 change: 0 additions & 1 deletion src/main/java/sirius/web/http/WebServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ protected static void removeOpenConnection(WebServerHandler webServerHandler) {
*
* @return a list of all currently open connections
*/
@SuppressWarnings("unchecked")
public static Collection<ActiveHTTPConnection> getOpenConnections() {
return openConnections.values();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package sirius.web.templates;

import sirius.kernel.commons.Explain;
import sirius.kernel.commons.Strings;
import sirius.kernel.di.std.Part;
import sirius.kernel.di.std.Register;
Expand Down Expand Up @@ -37,8 +36,6 @@ public class TagliatelleContentHandler implements ContentHandler {
@Part
private Tagliatelle tagliatelle;

@SuppressWarnings("squid:S2440")
@Explain("False positive")
protected Template getTemplate(Generator generator) throws CompileException {
if (Strings.isFilled(generator.getTemplateCode())) {
Compiler compiler = new Compiler(tagliatelle.createCompilationContext("inline", null, null),
Expand Down

0 comments on commit a0b5439

Please sign in to comment.