Skip to content

Commit

Permalink
chore: use system err for messages (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
markjschreiber authored Nov 7, 2023
1 parent b352769 commit 59e08ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/examples/java/software/amazon/nio/spi/examples/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Main {
public static void main(String[] args) throws IOException {

if(args.length == 0){
System.out.println("Provide one or more S3 URIs to read from.");
System.err.println("Provide one or more S3 URIs to read from.");
System.exit(1);
}

Expand All @@ -36,10 +36,10 @@ public static void main(String[] args) throws IOException {
// proves that the correct path type is being used
assert path.getClass().getName().contains("S3Path");

System.out.println("*** READING FROM "+path.toUri()+" ***");
System.err.println("*** READING FROM "+path.toUri()+" ***");
Files.readAllLines(path)
.forEach(System.out::println);
System.out.println("*** FINISHED READING OBJECT ***\n");
System.err.println("*** FINISHED READING OBJECT ***\n");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) throws IOException {


Path root = Paths.get(URI.create(bucketName));
System.out.println("root.getClass() = " + root.getClass());
System.err.println("root.getClass() = " + root.getClass());

FileSystem s3 = root.getFileSystem();

Expand Down

0 comments on commit 59e08ad

Please sign in to comment.