Skip to content

Commit

Permalink
restore java 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
micossow committed Nov 8, 2022
1 parent 0dbe63a commit 6382c4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 8

- name: Cache SBT
id: cache-sbt
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 8

- name: Cache SBT
id: cache-sbt
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 8

- name: Cache SBT
id: cache-sbt
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 8

- name: Cache sbt
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 8
- name: Cache sbt
uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/elasticmq/NodeAddress.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ case class NodeAddress(
def fullAddress: String = protocol + "://" + hostAndPort + suffix
def isWildcard: Boolean = host == "*"
def contextPathStripped: String = contextPath.stripPrefix("/").stripSuffix("/")
def suffix = if (contextPath.isBlank) "" else "/" + contextPathStripped
def suffix: String = if (contextPath.trim.isEmpty) "" else "/" + contextPathStripped
}

0 comments on commit 6382c4b

Please sign in to comment.