cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [12/50] [abbrv] git commit: fix String.format parameter type for enum value
Date Fri, 27 Jul 2012 15:19:38 GMT
fix String.format parameter type for enum value


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/732d83b7
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/732d83b7
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/732d83b7

Branch: refs/heads/cassandra-1.1
Commit: 732d83b7581b89394bd28a8c03124bff733efe7c
Parents: d96e813
Author: Dave Brosius <dbrosius@apache.org>
Authored: Wed Jul 25 23:46:01 2012 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Wed Jul 25 23:46:01 2012 -0400

----------------------------------------------------------------------
 .../apache/cassandra/transport/OptionCodec.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/732d83b7/src/java/org/apache/cassandra/transport/OptionCodec.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/transport/OptionCodec.java b/src/java/org/apache/cassandra/transport/OptionCodec.java
index 2898300..71d3193 100644
--- a/src/java/org/apache/cassandra/transport/OptionCodec.java
+++ b/src/java/org/apache/cassandra/transport/OptionCodec.java
@@ -77,7 +77,7 @@ public class OptionCodec<T extends Enum<T> & OptionCodec.Codecable<T>>
             T opt = fromId(body.readUnsignedShort());
             Object value = opt.readValue(body);
             if (options.containsKey(opt))
-                throw new ProtocolException(String.format("Duplicate option %d in message",
opt));
+                throw new ProtocolException(String.format("Duplicate option %s in message",
opt.name()));
             options.put(opt, value);
         }
         return options;


Mime
View raw message