The GitHub Actions job "Basic checks" on 
pekko-projection.git/refactor/java17-modernization-test-examples has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
f906773b54ab200b0360c92e3b8df5e0deb7dfd8 / 虎鸣 <[email protected]>
refactor: modernize Java test and example code with Java 17 features

Motivation:
Java 17 introduced records, pattern matching for instanceof, text blocks,
and other features that make Java code more concise and readable. The test
and example code contained many verbose data carrier classes and instanceof
patterns that can be significantly simplified.

Modification:
- Convert data carrier classes (commands, events, envelopes, results) to
  Java records across all test and example modules
- Use pattern matching for instanceof to eliminate explicit casts
- Use text blocks for multi-line SQL DDL strings
- Update interface methods from getXxx() to xxx() style to match record
  accessor conventions
- Update all field accesses from direct field access (obj.field) to
  record accessor method calls (obj.field())

Result:
Test and example Java code is more concise and idiomatic for Java 17+,
reducing boilerplate while maintaining the same behavior. Net reduction
of ~330 lines of code across 12 files.

Tests:
sbt "examples / compile"
sbt "integration-examples / compile"
sbt "cassandra-test / Test / compile"
sbt "jdbc / Test / compile"

References:
None - code modernization

Report URL: https://github.com/apache/pekko-projection/actions/runs/27789455740

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to