The GitHub Actions job "Unit Tests" on 
pekko-persistence-cassandra.git/fix/fix-compilation-warnings has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
910c44857203e2b520389d0b4c10507972f29ecc / 虎鸣 <[email protected]>
fix: fix compilation warnings across all Scala versions

Motivation:
Compilation produced 8 warnings in Scala 2.13 test sources:
- "getClass not selected from this instance" in CassandraSpec constructor 
default params
- "a type was inferred to be Any" in CassandraIntegrationSpec
- "private class Next is never used" in ManyActorsLoadSpec
- "private val newPersistenceIdScan is never used" in EventsByTagSpec
- "Name e is already introduced in an enclosing scope" (x2) in EventsByTagSpec
- "match may not be exhaustive" in ClusterShardingQuickTerminationSpec

Modification:
- Add @nowarn annotation on CassandraSpec for intentional getClass usage in 
default params
- Add explicit [Any] type parameter to expectMsgAllOf call
- Remove unused private case class Next from ManyActorsLoadSpec
- Remove unused private val newPersistenceIdScan from 
EventsByTagPersistenceIdCleanupSpec
- Rename shadowed pattern variable e to env in EventsByTagSpec
- Add catch-all case to extractShardId partial function for exhaustiveness

Result:
Clean compilation with zero warnings across all Scala versions (2.13 and 3).

Tests:
sbt +test:compile - all versions pass with no warnings

References:
None - code quality improvement

Report URL: 
https://github.com/apache/pekko-persistence-cassandra/actions/runs/28756632988

With regards,
GitHub Actions via GitBox


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

Reply via email to