Skip to content

Commit

Permalink
Sonar updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Oct 12, 2023
1 parent 082abd9 commit 7c6a7a4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ private Response handleException(final Throwable err) {
LOGGER.debug("Redirection: {}", err.getMessage());
LOGGER.trace("Redirection: ", err);
} else {
LOGGER.error("Error:", err);
LOGGER.debug("Error: {}", err.getMessage());
LOGGER.trace("Error: ", err);
}
return cause instanceof WebApplicationException
? ((WebApplicationException) cause).getResponse()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@
package org.trellisldp.rdfa;

import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.Collections.emptyList;
import static java.util.stream.Collectors.toList;
import static org.slf4j.LoggerFactory.getLogger;

import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.Mustache;
import com.github.mustachejava.MustacheFactory;

import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.ApplicationScoped;
Expand Down Expand Up @@ -64,7 +62,6 @@ public class DefaultRdfaWriterService implements RDFaWriterService {
/** The configuration key controlling the JS URLs to use. */
public static final String CONFIG_RDFA_JS = "trellis.rdfa.js";

private MustacheFactory mf;
private Mustache template;

@Inject
Expand Down Expand Up @@ -92,8 +89,7 @@ public class DefaultRdfaWriterService implements RDFaWriterService {
void init() {
final String resource = templateLocation.orElse("org/trellisldp/rdfa/resource.mustache");
LOGGER.info("Using RDFa writer template: {}", resource);
mf = new DefaultMustacheFactory();
template = mf.compile(resource);
template = new DefaultMustacheFactory().compile(resource);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,6 @@ private void setPrivateContainerChild(final String location) {
this.privateContainerChild = location;
}

private void setDefaultContainer(final String location) {
this.defaultContainer = location;
}

private void setDefaultContainerChild(final String location) {
this.defaultContainerChild = location;
}

private void setGroupContainer(final String location) {
this.groupContainer = location;
}
Expand Down

0 comments on commit 7c6a7a4

Please sign in to comment.