This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 74247e18ccf Removes warning of unchecked conversion (#16442)
74247e18ccf is described below

commit 74247e18ccfd1c443e64f726e75b7e2b5f8cb255
Author: Elliot West <[email protected]>
AuthorDate: Wed Jul 13 02:20:37 2022 +0100

    Removes warning of unchecked conversion (#16442)
---
 .../src/main/java/org/apache/pulsar/common/schema/KeyValue.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pulsar-client-api/src/main/java/org/apache/pulsar/common/schema/KeyValue.java 
b/pulsar-client-api/src/main/java/org/apache/pulsar/common/schema/KeyValue.java
index 496c219e03d..d9b25c33379 100644
--- 
a/pulsar-client-api/src/main/java/org/apache/pulsar/common/schema/KeyValue.java
+++ 
b/pulsar-client-api/src/main/java/org/apache/pulsar/common/schema/KeyValue.java
@@ -56,7 +56,7 @@ public class KeyValue<K, V> {
         if (!(obj instanceof KeyValue)) {
             return false;
         }
-        KeyValue<K, V> another = (KeyValue<K, V>) obj;
+        @SuppressWarnings("unchecked") KeyValue<K, V> another = (KeyValue<K, 
V>) obj;
         return Objects.equals(key, another.key)
             && Objects.equals(value, another.value);
     }

Reply via email to