Try just java restriction

[skip ci]
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c8968ea..0cb73cc 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -58,5 +58,5 @@
       run: mvn --show-version --batch-mode --no-transfer-progress -DtrimStackTrace=false

     - name: Check tests can be re-run

       # No need to test on all OS/Java combinations

-      if: ${{ matrix.java == '17' && matrix.os == 'ubuntu-latest' }}

+      if: ${{ matrix.java == '17' }}

       run: mvn test