From 813c4230d4c25fa3f411a9b9230cd3f605f09a28 Mon Sep 17 00:00:00 2001 From: Ewen Cheslack-Postava Date: Fri, 17 Apr 2015 18:02:23 -0700 Subject: [PATCH] kafka-2119; ConsumerRecord key() and value() methods should not have throws Exception; patched by Ewen Cheslack-Postava; reviewed by Jun Rao --- .../org/apache/kafka/clients/consumer/ConsumerRecord.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java index 466254e81c3..49d9527afeb 100644 --- a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java +++ b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java @@ -58,14 +58,14 @@ public final class ConsumerRecord { /** * 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; }