kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject kafka git commit: MINOR: Fix exception message in Copycat's Time logical type.
Date Fri, 09 Oct 2015 20:04:12 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 7233858be -> 96209b1e7


MINOR: Fix exception message in Copycat's Time logical type.

Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Guozhang Wang

Closes #291 from ewencp/fixup-time-logical-type


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

Branch: refs/heads/trunk
Commit: 96209b1e7a5ea9da0296a3319e3731b3802e3652
Parents: 7233858
Author: Ewen Cheslack-Postava <me@ewencp.org>
Authored: Fri Oct 9 13:08:31 2015 -0700
Committer: Guozhang Wang <wangguoz@gmail.com>
Committed: Fri Oct 9 13:08:31 2015 -0700

----------------------------------------------------------------------
 copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/96209b1e/copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java
----------------------------------------------------------------------
diff --git a/copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java b/copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java
index 76bf28c..e3255e0 100644
--- a/copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java
+++ b/copycat/api/src/main/java/org/apache/kafka/copycat/data/Time.java
@@ -62,7 +62,7 @@ public class Time {
         calendar.setTime(value);
         long unixMillis = calendar.getTimeInMillis();
         if (unixMillis < 0 || unixMillis > MILLIS_PER_DAY) {
-            throw new DataException("Copycat Time type should not have any time fields set
to non-zero values.");
+            throw new DataException("Copycat Time type should not have any date fields set
to non-zero values.");
         }
         return (int) unixMillis;
     }


Mime
View raw message