diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 481baa3..381f5a4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,23 +10,20 @@ name: Java CI with Maven on: push: - branches: [ "main", "dev" ] + branches: [ "main" ] paths: - 'src/**' - pull_request: - branches: [ "main", "dev" ] jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 11 uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '11' distribution: 'temurin' cache: maven - name: Build with Maven diff --git a/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestHttpResponseCode.java b/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestHttpResponseCode.java index d3d74b7..4004670 100644 --- a/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestHttpResponseCode.java +++ b/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestHttpResponseCode.java @@ -90,9 +90,11 @@ public enum RestRequestHttpResponseCode { InternalServerErrorException.class), /** There was a service unavailable while processing your request. */ - SERVICE_UNAVAILABLE(503, "There was a service unavailable while processing your request", - ServiceUnavailableException::new, - ServiceUnavailableException.class); + SERVICE_UNAVAILABLE( + 503, + "There was a service unavailable while processing your request", + ServiceUnavailableException::new, + ServiceUnavailableException.class); /** A map for retrieving the enum instances by code. */ private static final Map instanceByCode;