Elffuss BraidHub

kikocis/java-driver public

Make ProtocolVersion.toInt() public
Changeset2066f6f7195263f96ad0e1a19da4fbb4152137e0a3c32dd6071d8c9f6afb2d55
AuthorSam Tunnicliffe <sam@beobal.com> · 2015-03-25 11:51 UTC
CommitterSam Tunnicliffe <sam@beobal.com> · 2015-03-25 14:19 UTC
Parents2358e77d8126

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/ProtocolVersion.java +8 −1
@@ -62,7 +62,14 @@
6262 return new DriverInternalError("Unsupported protocol version " + this);
6363 }
6464
65- int toInt() {
65+ /**
66+ * Get the int representation of a protocol version.
67+ * This is for use internally by Cassandra to ensure that the
68+ * correct version is specified when serializing and deserializing
69+ * using classes from the imported driver library.
70+ * @return the protocol version as an int
71+ */
72+ public int toInt() {
6673 return asInt;
6774 }
6875