Elffuss BraidHub

kikocis/java-driver public

Merge pull request #308 from beobal/JAVA-700

Make ProtocolVersion.toInt() public
Changesetbdbb4ffb8f6f25899c6c5945e3e2bc18febeb57f5bc9e5b8a35fce2866ecfda0
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2015-06-17 16:59 +02:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2015-06-17 16:59 +02:00
Parents85d8166508e4, 2066f6f71952

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