From 70cba0ae036526c239217e674fd5628618418de5 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 17 Feb 2017 21:29:45 -0500 Subject: [PATCH] Fix KafkaTopicProvisioner Inner Classes - make destination inner classes `static` since they have no dependence on the outer class - make ctors package-protected - private ctors for inner classes cause the compiler to generate a synthetic ctor with an additional synthetic parameter --- .../provisioning/KafkaTopicProvisioner.java | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/spring-cloud-stream-binder-kafka-core/src/main/java/org/springframework/cloud/stream/binder/kafka/provisioning/KafkaTopicProvisioner.java b/spring-cloud-stream-binder-kafka-core/src/main/java/org/springframework/cloud/stream/binder/kafka/provisioning/KafkaTopicProvisioner.java index 99c0b2fed..c810f06b3 100644 --- a/spring-cloud-stream-binder-kafka-core/src/main/java/org/springframework/cloud/stream/binder/kafka/provisioning/KafkaTopicProvisioner.java +++ b/spring-cloud-stream-binder-kafka-core/src/main/java/org/springframework/cloud/stream/binder/kafka/provisioning/KafkaTopicProvisioner.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,7 @@ import kafka.utils.ZkUtils; * Kafka implementation for {@link ProvisioningProvider} * * @author Soby Chacko + * @author Gary Russell */ public class KafkaTopicProvisioner implements ProvisioningProvider, ExtendedProducerProperties>, InitializingBean { @@ -238,18 +239,19 @@ public class KafkaTopicProvisioner implements ProvisioningProvider