8075222: RandomAccessFile.getChannel changed to non-final in error

Reinstate 'final' RandomAccessFile.getChannel() declaration.

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2015-03-16 13:49:00 -07:00
parent 7618752fd9
commit 7d1b3d7277

View File

@ -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) {