mirror of https://github.com/apache/kafka.git
kafka-2119; ConsumerRecord key() and value() methods should not have throws Exception; patched by Ewen Cheslack-Postava; reviewed by Jun Rao
This commit is contained in:
parent
5397d3c53e
commit
813c4230d4
|
@ -58,14 +58,14 @@ public final class ConsumerRecord<K, V> {
|
|||
/**
|
||||
* The key (or null if no key is specified)
|
||||
*/
|
||||
public K key() throws Exception {
|
||||
public K key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* The value
|
||||
*/
|
||||
public V value() throws Exception {
|
||||
public V value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue