Skip to content

Commit eae0cb1

Browse files
authored
Feat/use java 23 (#132)
* use java 23 and markdown javadoc
1 parent c36b03f commit eae0cb1

File tree

75 files changed

+1521
-2070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1521
-2070
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-java@v4
2222
with:
2323
distribution: 'temurin'
24-
java-version: '21'
24+
java-version: '23'
2525
- uses: gradle/actions/setup-gradle@v4
2626
- name: Build with Gradle
2727
run: ./gradlew build

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/setup-java@v4
3838
with:
3939
distribution: 'temurin'
40-
java-version: '21'
40+
java-version: '23'
4141

4242
- name: Initialize CodeQL
4343
uses: github/codeql-action/init@v3

.github/workflows/dependency-submission.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
23-
java-version: '21'
23+
java-version: '23'
2424
- name: Generate and submit dependency graph
2525
uses: gradle/actions/dependency-submission@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
23-
java-version: '21'
23+
java-version: '23'
2424
- name: Setup Gradle
2525
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
2626
- name: Publish package

buildSrc/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ repositories {
99
dependencies {
1010
implementation(libs.spotbugs)
1111
}
12+
13+
// Prevent build warning: "Kotlin does not yet support 23 JDK target, falling back to Kotlin JVM_22 JVM target"
14+
kotlin {
15+
jvmToolchain(21)
16+
}

config/checkstyle/checkstyle.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,22 @@
209209
<module name="JavadocContentLocation"/>
210210
<module name="JavadocMethod"/>
211211
<!--<module name="JavadocParagraph"/>-->
212+
<!--
212213
<module name="JavadocStyle"/>
214+
-->
213215
<module name="JavadocTagContinuationIndentation"/>
214216
<module name="JavadocType"/>
217+
<!--
215218
<module name="JavadocVariable">
216219
<property name="scope" value="public"/>
217220
</module>
221+
-->
222+
<!--
218223
<module name="MissingJavadocMethod"/>
224+
-->
225+
<!--
219226
<module name="MissingJavadocType"/>
227+
-->
220228
<module name="NonEmptyAtclauseDescription"/>
221229
<!--<module name="RequireEmptyLineBeforeBlockTagGroup"/>-->
222230
<module name="SingleLineJavadoc"/>

docs/src/content/docs/guides/Examples/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ title: Overview
55
This section provides a variety of examples to help you get started with FastCSV.
66

77
While FastCSV is compatible with Java 11 and later, the examples in this section use
8-
Java 21 to demonstrate modern Java features and syntax for the sake of brevity.
8+
Java 23 to demonstrate modern Java features and syntax for the sake of brevity.
99

1010
You find all source code examples in the [FastCSV GitHub repository](https://github.com/osiegmar/FastCSV/tree/main/example/src/main/java/example).

docs/src/content/docs/guides/contribution.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This will help to avoid wasted effort and ensure that your contribution is in li
1818
- Understand and respect the [goals of the project](/architecture/goals/)
1919
- Get familiar with the [architecture](/architecture/architecture/)
2020
- Accept the [MIT license](https://opensource.org/license/mit) that will also apply to your contributions
21-
- Have Java 21 on your path
21+
- Have Java 23 on your path
2222

2323
1. Fork the [repository](https://github.com/osiegmar/FastCSV) and clone it to your local machine
2424

example/src/main/java/example/ExampleCsvCompression.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
import de.siegmar.fastcsv.reader.CsvReader;
1717
import de.siegmar.fastcsv.writer.CsvWriter;
1818

19-
/**
20-
* Example for writing and reading compressed CSV data.
21-
*/
19+
/// Example for writing and reading compressed CSV data.
2220
public class ExampleCsvCompression {
2321

2422
public static void main(final String[] args) throws IOException {

example/src/main/java/example/ExampleCsvReaderMapping.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
import de.siegmar.fastcsv.reader.CsvReader;
77
import de.siegmar.fastcsv.reader.NamedCsvRecord;
88

9-
/**
10-
* Example for reading CSV data with a mapping function.
11-
*/
9+
/// Example for reading CSV data with a mapping function.
1210
public class ExampleCsvReaderMapping {
1311

1412
private static final String DATA = """

0 commit comments

Comments
 (0)