Skip to content

Commit 8a1809d

Browse files
authored
JDK21 (#162)
* JDK21 * GA
1 parent e46684d commit 8a1809d

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
java_version: [ '17', '21' ]
11+
java_version: [ '21', '25' ]
1212
os: [ ubuntu-latest, windows-latest, macOS-latest ]
1313
steps:
1414
- uses: actions/checkout@v6

.github/workflows/publish-to-maven-central.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up JDK
1919
uses: actions/setup-java@v5
2020
with:
21-
java-version: 17
21+
java-version: 21
2222
distribution: 'temurin'
2323
cache: gradle
2424
- name: Deploy to Central Portal

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
fetch-depth: ''
1818
- run: |
1919
git fetch --prune --unshallow
20-
- name: Set up JDK 17
20+
- name: Set up JDK
2121
uses: actions/setup-java@v5
2222
with:
23-
java-version: 17
23+
java-version: 21
2424
distribution: 'adopt'
2525
- name: SonarCloud Scan
2626
run: ./gradlew check sonar

.github/workflows/update-gradle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
fetch-depth: 0
1616
fetch-tags: true
1717

18-
- name: Set up JDK 17
18+
- name: Set up JDK
1919
uses: actions/setup-java@v5
2020
with:
21-
java-version: 17
21+
java-version: 21
2222
distribution: 'temurin'
2323
cache: gradle
2424

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ gitVersioning.apply {
4949
dependencies {
5050

5151
implementation("org.apache.commons:commons-collections4:4.5.0")
52-
implementation("io.github.1c-syntax:utils:0.6.3")
52+
implementation("io.github.1c-syntax:utils:0.7.0")
5353

5454
// логирование
5555
implementation("org.slf4j:slf4j-api:2.0.17")
5656

57-
implementation("org.jspecify:jspecify:1.0.0")
57+
api("org.jspecify:jspecify:1.0.0")
5858

5959
// логирование
6060
testImplementation("org.slf4j:slf4j-reload4j:2.0.17")
@@ -70,8 +70,8 @@ dependencies {
7070
}
7171

7272
java {
73-
sourceCompatibility = JavaVersion.VERSION_17
74-
targetCompatibility = JavaVersion.VERSION_17
73+
sourceCompatibility = JavaVersion.VERSION_21
74+
targetCompatibility = JavaVersion.VERSION_21
7575
withSourcesJar()
7676
withJavadocJar()
7777
}

src/main/java/com/github/_1c_syntax/bsl/types/MultiLanguageString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static MultiLanguageString create(List<MultiLanguageString> strings) {
8282
if (strings.isEmpty()) {
8383
return EMPTY;
8484
} else if (strings.size() == 1) {
85-
return strings.get(0);
85+
return strings.getFirst();
8686
} else {
8787
Set<Entry> content = new HashSet<>();
8888
strings.forEach(string -> content.addAll(string.getContent()));

src/main/java/com/github/_1c_syntax/bsl/types/ValueTypeDescription.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public static ValueTypeDescription create(List<ValueType> types, List<Qualifier>
140140
return EMPTY;
141141
}
142142

143-
var composite = types.size() > 1 || types.get(0) instanceof MDOValueType;
143+
var composite = types.size() > 1 || types.getFirst() instanceof MDOValueType;
144144
return new ValueTypeDescription(types, qualifiers, composite);
145145
}
146146

0 commit comments

Comments
 (0)