Skip to content

Commit 6382c4b

Browse files
committed
restore java 8 support
1 parent 0dbe63a commit 6382c4b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-java@v2
2222
with:
2323
distribution: 'temurin'
24-
java-version: 11
24+
java-version: 8
2525

2626
- name: Cache SBT
2727
id: cache-sbt
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/setup-java@v2
5353
with:
5454
distribution: 'temurin'
55-
java-version: 11
55+
java-version: 8
5656

5757
- name: Cache SBT
5858
id: cache-sbt
@@ -83,7 +83,7 @@ jobs:
8383
uses: actions/setup-java@v2
8484
with:
8585
distribution: 'temurin'
86-
java-version: 11
86+
java-version: 8
8787

8888
- name: Cache SBT
8989
id: cache-sbt
@@ -117,7 +117,7 @@ jobs:
117117
uses: actions/setup-java@v2
118118
with:
119119
distribution: 'temurin'
120-
java-version: 11
120+
java-version: 8
121121

122122
- name: Cache sbt
123123
uses: actions/cache@v2

.github/workflows/scala-steward.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up JDK 11
1616
uses: actions/setup-java@v1
1717
with:
18-
java-version: 11
18+
java-version: 8
1919
- name: Cache sbt
2020
uses: actions/cache@v2
2121
with:

core/src/main/scala/org/elasticmq/NodeAddress.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ case class NodeAddress(
1010
def fullAddress: String = protocol + "://" + hostAndPort + suffix
1111
def isWildcard: Boolean = host == "*"
1212
def contextPathStripped: String = contextPath.stripPrefix("/").stripSuffix("/")
13-
def suffix = if (contextPath.isBlank) "" else "/" + contextPathStripped
13+
def suffix: String = if (contextPath.trim.isEmpty) "" else "/" + contextPathStripped
1414
}

0 commit comments

Comments
 (0)