Skip to content
Snippets Groups Projects
Commit ac122d18 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Make writeBit private and change exception type in close()

parent c45ed87b
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ public class OutBitStream implements AutoCloseable {
*
* @param bit True for 1
*/
private void writeBit(final int bit) throws IOException {
public void writeBit(final int bit) throws IOException {
writeBit(bit > 0);
}
......@@ -108,7 +108,7 @@ public class OutBitStream implements AutoCloseable {
* @throws Exception when flush fails.
*/
@Override
public void close() throws Exception {
public void close() throws IOException {
flush();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment