mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-21 19:08:31 +00:00
8075222: RandomAccessFile.getChannel changed to non-final in error
Reinstate 'final' RandomAccessFile.getChannel() declaration. Reviewed-by: alanb
This commit is contained in:
parent
7618752fd9
commit
7d1b3d7277
@ -276,7 +276,7 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public FileChannel getChannel() {
|
||||
public final FileChannel getChannel() {
|
||||
FileChannel fc = this.channel;
|
||||
if (fc == null) {
|
||||
synchronized (this) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user