Skip to content

Run OpenRewrite on all files to migrate to Java 17 #935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 14, 2025
Merged

Run OpenRewrite on all files to migrate to Java 17 #935

merged 6 commits into from
Mar 14, 2025

Conversation

uhafner
Copy link
Member

@uhafner uhafner commented Mar 14, 2025

Use var where possible to simplify the source code.

@uhafner uhafner added the internal Internal changes without user or API impact label Mar 14, 2025
Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

Copy link

☀️   Quality Monitor

Tests

   JUnit   JUnit Tests: No test results available

Code Coverage

   〰️   Line Coverage: 100% (0 missed lines)
   ➰   Branch Coverage: 100% (0 missed branches)

Style

   CheckStyle   CheckStyle: No warnings
   PMD   PMD: No warnings

Bugs

   SpotBugs   SpotBugs: No warnings
   🐛   Error Prone: No bugs

API Problems

   🚫   Revapi: No warnings

Vulnerabilities

   OWASP Dependency Check   OWASP Dependency Check: No warnings

Software Metrics

   🌀   Cyclomatic Complexity: <n/a>
   💭   Cognitive Complexity: <n/a>
   ➿   N-Path Complexity: <n/a>
   📏   Lines of Code: <n/a>
   📝   Non Commenting Source Statements: <n/a>
   🔗   Class Cohesion: <n/a>
   ⚖️   Weight of Class: <n/a>


🚧   Error Messages

Quality Monitor Errors:
No matching report files found when using pattern '**/target/*-reports/TEST*.xml'! Configuration error for 'JUnit Tests'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Line Coverage'?
No matching report files found when using pattern '**/target/site/jacoco/jacoco.xml'! Configuration error for 'Branch Coverage'?
No matching report files found when using pattern '**/target/**checkstyle-result.xml'! Configuration error for 'CheckStyle'?
No matching report files found when using pattern '**/target/pmd-*/pmd.xml'! Configuration error for 'PMD'?
No matching report files found when using pattern '**/target/spotbugsXml.xml'! Configuration error for 'SpotBugs'?
No matching report files found when using pattern '**/target/revapi-result.json'! Configuration error for 'Revapi'?
No matching report files found when using pattern '**/target/dependency-check-report.json'! Configuration error for 'OWASP Dependency Check'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cyclomatic Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Cognitive Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'N-Path Complexity'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Lines of Code'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Non Commenting Source Statements'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Class Cohesion'?
No matching report files found when using pattern '**/metrics/pmd.xml'! Configuration error for 'Weight of Class'?

Created by Quality Monitor v2.3.0 (#e6e6d75). More details are shown in the GitHub Checks Result.

@uhafner uhafner merged commit 3a709da into main Mar 14, 2025
29 of 30 checks passed
@uhafner uhafner deleted the java-17 branch March 14, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal changes without user or API impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant