Skip to content

Commit

Permalink
make flush throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
bastie committed Sep 8, 2024
1 parent bb5b687 commit 0cbb8f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/JavApi/io/OutputStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extension java.io {
open func close() throws {
}

open func flush() {
open func flush() throws {
}

open func write (_ b : Int) throws {
Expand Down
4 changes: 2 additions & 2 deletions Sources/JavApi/io/PrintStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ extension java.io {
public override func close() throws {
try self.delegate.close()
}
public override func flush() {
self.delegate.flush ()
public override func flush() throws {
try self.delegate.flush ()
}

public override func write(_ value: [byte]) throws {
Expand Down

0 comments on commit 0cbb8f1

Please sign in to comment.