forked from j62/ctbrec
Remove finalize method. It is deprecated in Java 9
This commit is contained in:
parent
59cd9cf699
commit
9bcf7523b1
|
@ -7,3 +7,4 @@ Changes made to mpegts-streamer for ctbrec
|
|||
* Add BlockingMultiMTSSource, which can be used to add sources, after the streaming has been started
|
||||
* Don't close the stream, if a packet can't be read in one go InputStreamMTSSource. Instead read from
|
||||
the stream until the packet is complete
|
||||
* Remove finalize method. It is deprecated in Java 9.
|
||||
|
|
|
@ -28,13 +28,4 @@ public abstract class AbstractMTSSource implements MTSSource {
|
|||
|
||||
protected abstract MTSPacket nextPacketInternal() throws Exception;
|
||||
protected abstract void closeInternal() throws Exception;
|
||||
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
if (!closed) {
|
||||
close();
|
||||
}
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue