Skip to content

Commit 70c3eb0

Browse files
committed
use java 17
1 parent 37f940e commit 70c3eb0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/setup-java@v3
1919
with:
2020
distribution: 'temurin'
21-
java-version: '8'
21+
java-version: '17'
2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
2424
- name: Build Release Artifacts with Gradle

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ subprojects {
5757
}
5858

5959
java {
60-
sourceCompatibility = JavaVersion.VERSION_1_8
61-
targetCompatibility = JavaVersion.VERSION_1_8
60+
sourceCompatibility = JavaVersion.VERSION_17
61+
targetCompatibility = JavaVersion.VERSION_17
6262
}
6363

6464
fun adjustArchiveFileName(property: Property<String>) {

voicechat/src/main/java/net/labymod/serverapi/integration/voicechat/model/VoiceChatMute.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ public boolean equals(Object o) {
9999
return true;
100100
}
101101

102-
if (!(o instanceof VoiceChatMute)) {
102+
if (!(o instanceof VoiceChatMute that)) {
103103
return false;
104104
}
105105

106-
VoiceChatMute that = (VoiceChatMute) o;
107106
return this.end == that.end && Objects.equals(this.uniqueId, that.uniqueId)
108107
&& Objects.equals(this.reason, that.reason);
109108
}

0 commit comments

Comments
 (0)