kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun...@apache.org
Subject kafka git commit: kafka-2119; ConsumerRecord key() and value() methods should not have throws Exception; patched by Ewen Cheslack-Postava; reviewed by Jun Rao
Date Sat, 18 Apr 2015 01:02:34 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 5397d3c53 -> 813c4230d


kafka-2119; ConsumerRecord key() and value() methods should not have throws Exception; patched
by Ewen Cheslack-Postava; reviewed by Jun Rao


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/813c4230
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/813c4230
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/813c4230

Branch: refs/heads/trunk
Commit: 813c4230d4c25fa3f411a9b9230cd3f605f09a28
Parents: 5397d3c
Author: Ewen Cheslack-Postava <me@ewencp.org>
Authored: Fri Apr 17 18:02:23 2015 -0700
Committer: Jun Rao <junrao@gmail.com>
Committed: Fri Apr 17 18:02:23 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/kafka/clients/consumer/ConsumerRecord.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/813c4230/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java
----------------------------------------------------------------------
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 466254e..49d9527 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<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;
     }
 


Mime
View raw message