You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/02/08 21:37:33 UTC

[commons-io] branch master updated: Fix compilation error. Build on more JDKs.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new b5990be  Fix compilation error. Build on more JDKs.
b5990be is described below

commit b5990be69139f0b04919bc097144a105051aafcc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Feb 8 16:37:31 2019 -0500

    Fix compilation error. Build on more JDKs.
---
 .travis.yml                                                  | 5 ++++-
 src/test/java/org/apache/commons/io/IOUtilsCopyTestCase.java | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 128ce20..548d4fe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,9 +18,12 @@ sudo: false
 
 jdk:
   - openjdk7
+  - openjdk10
+  - openjdk11
+  - openjdk12
   - oraclejdk8
   - oraclejdk9
-  - openjdk10
+  - oraclejdk11
 
 script:
   - mvn
diff --git a/src/test/java/org/apache/commons/io/IOUtilsCopyTestCase.java b/src/test/java/org/apache/commons/io/IOUtilsCopyTestCase.java
index eefaac9..8b4cd87 100644
--- a/src/test/java/org/apache/commons/io/IOUtilsCopyTestCase.java
+++ b/src/test/java/org/apache/commons/io/IOUtilsCopyTestCase.java
@@ -254,7 +254,7 @@ public class IOUtilsCopyTestCase {
     public void testCopy_readerToAppendable_IO84() throws Exception {
         final long size = (long) Integer.MAX_VALUE + (long) 1;
         final Reader reader = new NullReader(size);
-        final Appendable writer = new NullWriter();
+        final NullWriter writer = new NullWriter();
 
         // Test copy() method
         assertEquals(size, IOUtils.copy(reader, writer));