Please review at your convenience.

Issue:  https://bugs.openjdk.java.net/browse/JDK-8075222
Diff:

--- a/src/java.base/share/classes/java/io/RandomAccessFile.java
+++ b/src/java.base/share/classes/java/io/RandomAccessFile.java
@@ -276,7 +276,7 @@
      * @since 1.4
      * @spec JSR-51
      */
-    public FileChannel getChannel() {
+    public final FileChannel getChannel() {
         FileChannel fc = this.channel;
         if (fc == null) {
             synchronized (this) {

Reinstate ‘final’ in method declaration.

Thanks,

Brian

Reply via email to