Skip to content

Commit 9d49128

Browse files
committed
GH-2600: Remove Unnecessary Local Variable
1 parent e7c0d72 commit 9d49128

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,12 +706,11 @@ private Type messagePayloadType(Type paramType) {
706706
}
707707

708708
private boolean isMessageWithGeneric(Type paramType) {
709-
boolean messageHasGeneric = (paramType instanceof ParameterizedType pType
709+
return (paramType instanceof ParameterizedType pType
710710
&& pType.getRawType().equals(Message.class))
711711
|| (isWildCardWithUpperBound(paramType)
712712
&& ((WildcardType) paramType).getUpperBounds()[0] instanceof ParameterizedType wildCardZero
713713
&& wildCardZero.getRawType().equals(Message.class));
714-
return messageHasGeneric;
715714
}
716715

717716
private boolean isSimpleListOfConsumerRecord(Type paramType) {

0 commit comments

Comments
 (0)