@@ -59,20 +59,20 @@ public class FileWriterWithEncoding extends ProxyWriter {
5959 */
6060 private static Writer initWriter (final File file , final Object encoding , final boolean append ) throws IOException {
6161 Objects .requireNonNull (file , "file" );
62- OutputStream stream = null ;
62+ OutputStream outputStream = null ;
6363 final boolean fileExistedAlready = file .exists ();
6464 try {
65- stream = FileUtils .newOutputStream (file , append );
65+ outputStream = FileUtils .newOutputStream (file , append );
6666 if (encoding == null || encoding instanceof Charset ) {
67- return new OutputStreamWriter (stream , Charsets .toCharset ((Charset ) encoding ));
67+ return new OutputStreamWriter (outputStream , Charsets .toCharset ((Charset ) encoding ));
6868 }
6969 if (encoding instanceof CharsetEncoder ) {
70- return new OutputStreamWriter (stream , (CharsetEncoder ) encoding );
70+ return new OutputStreamWriter (outputStream , (CharsetEncoder ) encoding );
7171 }
72- return new OutputStreamWriter (stream , (String ) encoding );
72+ return new OutputStreamWriter (outputStream , (String ) encoding );
7373 } catch (final IOException | RuntimeException ex ) {
7474 try {
75- IOUtils .close (stream );
75+ IOUtils .close (outputStream );
7676 } catch (final IOException e ) {
7777 ex .addSuppressed (e );
7878 }
0 commit comments