Skip to content

Commit

Permalink
Strange java.sql dependency removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tweimer committed Aug 4, 2022
1 parent 968e32c commit 532fde6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions src/main/java/com/mergebase/log4j/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.jar.JarFile;
import java.util.zip.ZipFile;
Expand Down Expand Up @@ -35,13 +32,7 @@ private static void close(int flag, Object... closeArgs) {
continue;
}
try {
if (o instanceof ResultSet) {
((ResultSet) o).close();
} else if (o instanceof Statement) {
((Statement) o).close();
} else if (o instanceof Connection) {
((Connection) o).close();
} else if (o instanceof Reader) {
if (o instanceof Reader) {
((Reader) o).close();
} else if (o instanceof Writer) {
((Writer) o).close();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
module log4jdetector {
requires java.sql;
}

0 comments on commit 532fde6

Please sign in to comment.