Skip to content

Commit ca35cd6

Browse files
authored
Merge pull request #58 from juherr/features/nullaway
This pull request introduces NullAway static analysis support to improve null safety in the codebase. The main purpose is to enhance code quality by adding null annotations and restructuring imports/formatting to align with NullAway requirements.
2 parents 77c9aca + b0f390d commit ca35cd6

309 files changed

Lines changed: 5947 additions & 5949 deletions

File tree

Some content is hidden

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

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ ubuntu-22.04, ubuntu-24.04 ]
15-
java: [ '17', '21' ]
15+
java: [ '21', '24' ]
1616
db: [ 'mysql:8.0', 'mariadb:10.3', 'mariadb:10.4.30', 'mariadb:10.5.21', 'mariadb:10.6.14' ]
1717
runs-on: ${{ matrix.os }}
1818
services:

.github/workflows/review.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,22 @@ jobs:
99
with:
1010
fetch-depth: 0
1111

12-
- name: Set up Java 17
12+
- name: Set up Java 21
1313
uses: actions/setup-java@v4
1414
with:
15-
java-version: 17
1615
distribution: 'temurin'
16+
java-version: '21'
1717
cache: maven
1818

19-
- name: Check with Maven
19+
- name: Check license headers
2020
run: ./mvnw -B -V com.mycila:license-maven-plugin:5.0.0:check
21-
checkstyle:
21+
style-check:
2222
runs-on: 'ubuntu-latest'
2323
steps:
2424
- uses: actions/checkout@v5
2525
- uses: actions/setup-java@v4
2626
with:
2727
distribution: 'temurin'
28-
java-version: '17'
29-
- name: Run Checkstyle
30-
uses: nikitasavinov/checkstyle-action@master
31-
with:
32-
checkstyle_config: './build-tools/src/main/resources/steve/checkstyle.xml'
33-
workdir: '.'
34-
reporter: 'github-pr-check'
35-
tool_name: 'checkstyle'
28+
java-version: '21'
29+
- name: Check code style
30+
run: ./mvnw spotless:check

.mvn/jvm.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
2+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
3+
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
4+
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
5+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
6+
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
7+
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
8+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
9+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
10+
--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
11+
--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED

build-tools/pom.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

build-tools/src/main/resources/steve/checkstyle.xml

Lines changed: 0 additions & 168 deletions
This file was deleted.

build-tools/src/main/resources/steve/maven-pmd-plugin-default.xml

Lines changed: 0 additions & 81 deletions
This file was deleted.

lombok.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
config.stopBubbling = true
2+
lombok.addNullAnnotations = jspecify
3+
lombok.addLombokGeneratedAnnotation = true

0 commit comments

Comments
 (0)