The GitHub Actions job "CI" on 
pekko-connectors-kafka.git/fix/fix-compilation-warnings has succeeded.
Run started by GitHub user He-Pin (triggered by He-Pin).

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

Motivation:
Java unchecked conversion warnings when compiling Java test classes
that extend KafkaTestKitClass (which implements the KafkaTestKit trait).
The private lazy val adminDefaults in the trait generated a mangled
accessor method on the interface with an erased return type
(java.util.Map), causing javac to warn about unchecked conversion
to java.util.Map<String, Object>. This affected 9 Java test files.

Modification:
Moved the adminDefaults map creation from a private lazy val in the
KafkaTestKit trait to a private[internal] method in a new
KafkaTestKit companion object. This eliminates the mangled interface
method that triggered the Java compiler warnings.

Result:
Clean compilation with zero warnings across all Scala versions.

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

References:
None - code quality improvement

Report URL: 
https://github.com/apache/pekko-connectors-kafka/actions/runs/28757011311

With regards,
GitHub Actions via GitBox


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

Reply via email to