You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ju...@apache.org on 2015/04/18 03:02:34 UTC
kafka git commit: kafka-2119;
ConsumerRecord key() and value() methods should not have throws
Exception; patched by Ewen Cheslack-Postava; reviewed by Jun Rao
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 <ju...@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;
}