Update `actions/setup-java` to v2.
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index ac34f20..f0aea7a 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -39,8 +39,9 @@
         restore-keys: |
           ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@v1.4.3
+      uses: actions/setup-java@v2
       with:
+        distribution: 'adopt'
         java-version: ${{ matrix.java }}
     - name: Build with Maven
       run: mvn -V -Ddoclint=none --file pom.xml --no-transfer-progress
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c252719..05d9caf 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -102,8 +102,8 @@
        <action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">
          Update commons-pool2 from 2.8.0 to 2.9.0, #61.
        </action>
-       <action type="update" dev="ggregory" due-to="Dependabot">
-         Update actions/setup-java from v1.4.0 to v1.4.2 #63, #65.
+       <action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">
+         Update actions/setup-java from v1.4.0 to v2 #63, #65.
        </action>
        <action type="update" dev="ggregory" due-to="Gary Gregory">
          Update optional commons-codec from 1.14 to 1.15.