@@ -398,7 +398,7 @@ public Writer getWriter(final Charset charset, final OpenOption... options) thro
398398 }
399399
400400 @ Override
401- protected Channel getChannel (OpenOption ... options ) throws IOException {
401+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
402402 return getRandomAccessFile (options ).getChannel ();
403403 }
404404
@@ -445,7 +445,7 @@ public Reader getReader(final Charset charset) throws IOException {
445445 }
446446
447447 @ Override
448- protected Channel getChannel (OpenOption ... options ) throws IOException {
448+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
449449 for (final OpenOption option : options ) {
450450 if (option == StandardOpenOption .WRITE ) {
451451 throw new UnsupportedOperationException (
@@ -518,7 +518,7 @@ public Reader getReader(final Charset charset) throws IOException {
518518 }
519519
520520 @ Override
521- protected Channel getChannel (OpenOption ... options ) throws IOException {
521+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
522522 for (final OpenOption option : options ) {
523523 if (option == StandardOpenOption .WRITE ) {
524524 throw new UnsupportedOperationException (
@@ -571,7 +571,7 @@ public Path getPath() {
571571 }
572572
573573 @ Override
574- protected Channel getChannel (OpenOption ... options ) throws IOException {
574+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
575575 return Files .newByteChannel (getPath (), options );
576576 }
577577 }
@@ -616,7 +616,7 @@ public Reader getReader(final Charset charset) throws IOException {
616616 }
617617
618618 @ Override
619- protected Channel getChannel (OpenOption ... options ) throws IOException {
619+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
620620 return Channels .newChannel (getInputStream (options ));
621621 }
622622
@@ -700,7 +700,7 @@ public Writer getWriter(final Charset charset, final OpenOption... options) thro
700700 }
701701
702702 @ Override
703- protected Channel getChannel (OpenOption ... options ) throws IOException {
703+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
704704 return Channels .newChannel (getOutputStream (options ));
705705 }
706706 }
@@ -739,7 +739,7 @@ public Path getPath() {
739739 }
740740
741741 @ Override
742- protected Channel getChannel (OpenOption ... options ) throws IOException {
742+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
743743 return Files .newByteChannel (getPath (), options );
744744 }
745745 }
@@ -826,7 +826,7 @@ public Reader getReader(final Charset charset) throws IOException {
826826 }
827827
828828 @ Override
829- protected Channel getChannel (OpenOption ... options ) throws IOException {
829+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
830830 return Channels .newChannel (getInputStream ());
831831 }
832832 }
@@ -869,7 +869,7 @@ public Path getPath() {
869869 }
870870
871871 @ Override
872- protected Channel getChannel (OpenOption ... options ) throws IOException {
872+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
873873 final URI uri = get ();
874874 final String scheme = uri .getScheme ();
875875 if (SCHEME_HTTP .equalsIgnoreCase (scheme ) || SCHEME_HTTPS .equalsIgnoreCase (scheme )) {
@@ -924,7 +924,7 @@ public Writer getWriter(final Charset charset, final OpenOption... options) thro
924924 }
925925
926926 @ Override
927- protected Channel getChannel (OpenOption ... options ) throws IOException {
927+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
928928 return Channels .newChannel (getOutputStream ());
929929 }
930930 }
@@ -956,7 +956,7 @@ public InputStream getInputStream(final OpenOption... options) throws IOExceptio
956956 }
957957
958958 @ Override
959- public Reader getReader (Charset charset ) throws IOException {
959+ public Reader getReader (final Charset charset ) throws IOException {
960960 return Channels .newReader (
961961 getChannel (ReadableByteChannel .class ),
962962 Charsets .toCharset (charset ).newDecoder (),
@@ -969,15 +969,15 @@ public OutputStream getOutputStream(final OpenOption... options) throws IOExcept
969969 }
970970
971971 @ Override
972- public Writer getWriter (Charset charset , OpenOption ... options ) throws IOException {
972+ public Writer getWriter (final Charset charset , final OpenOption ... options ) throws IOException {
973973 return Channels .newWriter (
974974 getChannel (WritableByteChannel .class , options ),
975975 Charsets .toCharset (charset ).newEncoder (),
976976 -1 );
977977 }
978978
979979 @ Override
980- protected Channel getChannel (OpenOption ... options ) throws IOException {
980+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
981981 // No conversion
982982 return get ();
983983 }
@@ -1155,7 +1155,7 @@ public Writer getWriter(final Charset charset, final OpenOption... options) thro
11551155 * @throws UnsupportedOperationException If this origin cannot be converted to a channel of the given type.
11561156 * @since 2.21.0
11571157 */
1158- public final <C extends Channel > C getChannel (Class <C > channelType , OpenOption ... options ) throws IOException {
1158+ public final <C extends Channel > C getChannel (final Class <C > channelType , final OpenOption ... options ) throws IOException {
11591159 Objects .requireNonNull (channelType , "channelType" );
11601160 final Channel channel = getChannel (options );
11611161 if (channelType .isInstance (channel )) {
@@ -1173,7 +1173,7 @@ public final <C extends Channel> C getChannel(Class<C> channelType, OpenOption..
11731173 * @throws UnsupportedOperationException If this origin cannot be converted to a channel.
11741174 * @since 2.21.0
11751175 */
1176- protected Channel getChannel (OpenOption ... options ) throws IOException {
1176+ protected Channel getChannel (final OpenOption ... options ) throws IOException {
11771177 throw unsupportedOperation ("getChannel" );
11781178 }
11791179
@@ -1193,13 +1193,13 @@ public String toString() {
11931193 return getSimpleClassName () + "[" + origin .toString () + "]" ;
11941194 }
11951195
1196- UnsupportedOperationException unsupportedOperation (String method ) {
1196+ UnsupportedOperationException unsupportedOperation (final String method ) {
11971197 return new UnsupportedOperationException (String .format (
11981198 "%s#%s() for %s origin %s" ,
11991199 getSimpleClassName (), method , origin .getClass ().getSimpleName (), origin ));
12001200 }
12011201
1202- UnsupportedOperationException unsupportedChannelType (Class <? extends Channel > channelType ) {
1202+ UnsupportedOperationException unsupportedChannelType (final Class <? extends Channel > channelType ) {
12031203 return new UnsupportedOperationException (String .format (
12041204 "%s#getChannel(%s) for %s origin %s" ,
12051205 getSimpleClassName (),
0 commit comments