From f44dc7d694c1a3ee281bbf3f280e3c079c77b2a9 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Mon, 19 Nov 2018 13:22:48 +0100 Subject: [PATCH] GH-1531 Removed partitionCount as arg for isPartitioned check Resolves #1531 --- .../cloud/stream/binder/ProducerProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/ProducerProperties.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/ProducerProperties.java index bdaf2fd9f..4a272d1c5 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/ProducerProperties.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/ProducerProperties.java @@ -105,8 +105,8 @@ public class ProducerProperties implements MergableProperties { } public boolean isPartitioned() { - return this.partitionCount > 1 || this.partitionKeyExpression != null - || this.partitionKeyExtractorName != null || this.partitionKeyExtractorClass != null; + return this.partitionKeyExpression != null || this.partitionKeyExtractorName != null + || this.partitionKeyExtractorClass != null; } @Deprecated