# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1641303870 -3600 # Node ID 6666a9c624601756f2b8e6b75f8ff74dfae61f64 # Parent c462161504a3b422f075584d0e7fcb4eeb0beaef Cosmetic changes diff --git a/example/OnClientExample.java b/example/OnClientExample.java --- a/example/OnClientExample.java +++ b/example/OnClientExample.java @@ -21,7 +21,12 @@ import java.nio.charset.StandardCharsets import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; -import java.sql.*; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.SQLNonTransientException; +import java.sql.Statement; public class OnClientExample { @@ -179,7 +184,7 @@ public class OnClientExample { private void uploadFileData(MonetConnection.Upload handle, String name, boolean textMode, long linesToSkip) throws IOException { // Validate the path, demonstrating two ways of dealing with errors Path path = securelyResolvePath(name); - if (path == null || !Files.exists(path)) { + if (path == null || !Files.exists(path)) { // This makes the COPY command fail but keeps the connection // alive. Can only be used if we haven't sent any data yet handle.sendError("Invalid path");