Skip to content

Commit

Permalink
fix modernizer waarcshuwingen in brmo-proxyservice module
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Jan 20, 2025
1 parent 22cd3e4 commit c5f67c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void init() throws ServletException {
if (_saveDir == null || _saveDir.isEmpty()) {
throw new ServletException("De parameter '" + SAVE_DIR + "' is benodigd.");
}
this.saveDir = new File(_saveDir);
this.saveDir = java.nio.file.Path.of(_saveDir).toFile();
try {
FileUtils.forceMkdir(saveDir);
log.info("Initialisatie met directory: " + this.saveDir);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
/**
* @author mprins
*/
@SuppressModernizer
class BerichtEndpointFileServletTest {

private String saveDir = "/bericht-post-test-";
private ServletUnitClient client;
private ServletRunner sr;

@BeforeEach
@SuppressModernizer
void setUp() {
HttpUnitOptions.setDefaultCharacterSet("UTF-8");
HttpUnitOptions.setLoggingHttpHeaders(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.File;
import org.gaul.modernizer_maven_annotations.SuppressModernizer;
import org.junit.jupiter.api.Test;

@SuppressModernizer
class WebXmlTest {
@Test
void validateWebXml() throws Exception {
Expand Down

0 comments on commit c5f67c3

Please sign in to comment.