You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "mdedetrich (via GitHub)" <gi...@apache.org> on 2023/05/21 10:42:05 UTC

[GitHub] [incubator-pekko-connectors-kafka] mdedetrich opened a new pull request, #71: Add suppress warnings for unchecked conversions

mdedetrich opened a new pull request, #71:
URL: https://github.com/apache/incubator-pekko-connectors-kafka/pull/71

   When compiling this project you get these warnings
   
   ```
   [warn] /Users/mdedetrich/github/incubator-pekko-connectors-kafka/testkit/src/main/java/org/apache/pekko/kafka/testkit/javadsl/BaseKafkaTest.java:49:1: org$apache$pekko$kafka$testkit$internal$KafkaTestKit$$adminDefaults() in org.apache.pekko.kafka.testkit.internal.KafkaTestKitClass implements org$apache$pekko$kafka$testkit$internal$KafkaTestKit$$adminDefaults() in org.apache.pekko.kafka.testkit.internal.KafkaTestKit
   [warn]   return type requires unchecked conversion from java.util.Map to java.util.Map<java.lang.String,java.lang.Object>
   [warn] public abstract class BaseKafkaTest extends KafkaTestKitClass {
   ```
   
   Adding `@SuppressWarnings("unchecked")` solves these issues. Note that this is not unusual for Java code within Pekko projects (i.e. see https://github.com/apache/incubator-pekko-http/blob/fa1cb9cbc2a22da6e507b3725e6fca7f3aab15da/http-core/src/main/java/org/apache/pekko/http/javadsl/model/ContentRange.java#L40 as an example)


-- 
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: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko-connectors-kafka] He-Pin merged pull request #71: Add suppress warnings for unchecked conversions

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #71:
URL: https://github.com/apache/incubator-pekko-connectors-kafka/pull/71


-- 
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: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org