He-Pin opened a new pull request, #590:
URL: https://github.com/apache/pekko-connectors-kafka/pull/590

   ### 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 during Scala 3 cross-compilation.
   
   ### 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to