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:
Ewen Cheslack-Postava 2015-04-17 18:02:23 -07:00 committed by Jun Rao
parent 5397d3c53e
commit 813c4230d4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}