hehuiyuan opened a new pull request #13494:
URL: https://github.com/apache/flink/pull/13494
## What is the purpose of the change
This pull resquest fixes Kafka connector. There is a cast problem when use
properties method.
```
Properties props = new Properties();
props.put( "enable.auto.commit", "false");
props.put( "fetch.max.wait.ms", "3000");
props.put("flink.poll-timeout", 5000);
props.put( "flink.partition-discovery.interval-millis", false);
kafka = new Kafka()
.version("0.11")
.topic(topic)
.properties(props);
```
```
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer
cannot be cast to java.lang.String
Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean
cannot be cast to java.lang.String
```
## Brief change log
- *change (String) v ----> String.valueOf() in Kafka.java*
## Documentation
- Does this pull request introduce a new feature? ( no)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]