Skip to content

Commit 9f94417

Browse files
committed
Fix Unchecked Compiler Warning
1 parent 4ed8023 commit 9f94417

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/KafkaMessageHeaderAccessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ private int fromBytes(String headerName) {
7777
* @return the value, if present.
7878
* @throws IllegalArgumentException if the type is not correct.
7979
*/
80+
@SuppressWarnings("unchecked")
8081
@Nullable
8182
public <T> T getHeader(String key, Class<T> type) {
8283
Object value = getHeader(key);

0 commit comments

Comments
 (0)