diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index d14257eb6..95f832487 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -39,8 +39,9 @@ jobs:
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 package --file pom.xml --no-transfer-progress
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1b49fb47b..617d590c0 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -34,7 +34,7 @@
Fix flaky UnmodifiableMultiValuedMapTest.
- Bump actions/setup-java from v1.4.0 to v1.4.3 #174 #177 #186.
+ Bump actions/setup-java from v1.4.0 to v2 #174 #177 #186 #224.
Refine javadoc and fix typos.