Skip to content

Commit afffbde

Browse files
committed
Clean up some warnings
1 parent d4a948f commit afffbde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labkey-client-api/src/org/labkey/remoteapi/query/ImportDataCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import java.io.InputStreamReader;
3333
import java.io.StringWriter;
3434
import java.net.URI;
35-
import java.net.URISyntaxException;
35+
import java.nio.charset.Charset;
3636
import java.util.Arrays;
3737
import java.util.Objects;
3838
import java.util.stream.Collectors;
@@ -298,7 +298,7 @@ public ImportDataCommand copy()
298298
return new ImportDataCommand(this);
299299
}
300300

301-
public static void main(String[] args) throws IOException, URISyntaxException
301+
public static void main(String[] args) throws IOException
302302
{
303303
// required
304304
String baseServerUrl = null;
@@ -581,7 +581,7 @@ private static void printUsage()
581581
private static String readFully(InputStream in) throws IOException
582582
{
583583
StringWriter sw = new StringWriter();
584-
try (BufferedReader buf = new BufferedReader(new InputStreamReader(in)))
584+
try (BufferedReader buf = new BufferedReader(new InputStreamReader(in, Charset.defaultCharset())))
585585
{
586586
String line;
587587
do

0 commit comments

Comments
 (0)