Skip to content

Commit 86ec07c

Browse files
style: Appease PMD/Codacy
1 parent c57c427 commit 86ec07c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/net/sf/jsqlparser/test/TestUtils.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.util.List;
2323
import java.util.Map;
2424
import java.util.function.Consumer;
25+
import java.util.logging.*;
2526
import java.util.regex.Pattern;
2627
import java.util.stream.Collectors;
2728
import java.util.stream.Stream;
@@ -155,9 +156,9 @@ private static void writeTestToFile(String sanitizedInputSqlStr) {
155156
IOUtils.write("\n;", fileWriter);
156157
}
157158
IOUtils.write("\n\n", fileWriter);
158-
} catch (IOException e) {
159-
throw new RuntimeException(e);
160-
}
159+
} catch (IOException ex) {
160+
Logger.getLogger(TestUtils.class.getName()).log(Level.SEVERE, "Writing SQL to file failed.", ex);
161+
}throw new RuntimeException(e);
161162
}
162163
}
163164

0 commit comments

Comments
 (0)