Update to Kernsoftware 3.19.2 and modernize with Java 17 features#107
Update to Kernsoftware 3.19.2 and modernize with Java 17 features#107ChristianHoesel merged 4 commits intomasterfrom
Conversation
Co-authored-by: ChristianHoesel <4498707+ChristianHoesel@users.noreply.github.com>
|
@copilot ist auch der Code auf Java 17 Level? |
Ja, das Projekt ist bereits auf Java 17 Level konfiguriert. Die Eigenschaft Die CI-Pipeline testet auch mit Java 17, 21 und 25, was bestätigt, dass die Konfiguration korrekt ist. |
|
@copilot werden auch Java 17 Sprachfeatures konsequent verwendet? |
Die aktuelle Codebasis nutzt noch keine modernen Java 17 Features wie Records, Pattern Matching oder Sealed Classes. Der Code ist kompatibel mit Java 17, verwendet aber hauptsächlich ältere Java-Syntax. Soll ich den Code refactoren, um Java 17 Sprachfeatures zu nutzen (z.B. Records für Datenklassen wie |
|
@copilot Ja, verwende Java 17 Sprachfeatures |
Co-authored-by: ChristianHoesel <4498707+ChristianHoesel@users.noreply.github.com>
Co-authored-by: ChristianHoesel <4498707+ChristianHoesel@users.noreply.github.com>
Java 17 Sprachfeatures wurden erfolgreich implementiert in Commits 4f0d5eb und cc12431: Umgesetzte Features:
CodeQL-Sicherheitsprüfung: 0 Alerts ✓ Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Updates Kernsoftware dependencies from 3.19.0 to 3.19.2 across all modules and modernizes the codebase with Java 17 language features.
Changes
Dependency Updates
kernsoftware_versionto'3.19.2'in all 7 module build.gradle filesnerz.javaVersion = 17in gradle.propertiesAffected dependencies:
de.bsvrz.dav:de.bsvrz.dav.dafde.bsvrz.sys:de.bsvrz.sys.funclib.applicationJava 17 Feature Adoptions
Records (Java 16+):
AkkumulationKeyto record in archivcheck module (51 lines → 8 lines)SummaryKeyto record in appanalyzer module (69 lines → 10 lines)Pattern Matching for instanceof (Java 16+):
ArchivSizer.ResultSet.isValid()KbListerwhen casting SystemObject to SystemObjectTypeSwitch Expressions (Java 14+):
UfdsSensorType.getDefaultStufen()Lambda Expressions:
ArchivSizerandKbListerMainViewLocal Variable Type Inference (var):
StringBuilder:
Testing
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.