kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | bdbb4ffb8f6f25899c6c5945e3e2bc18febeb57f5bc9e5b8a35fce2866ecfda0 |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-06-17 16:59 +02:00 |
| Committer | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-06-17 16:59 +02:00 |
| Parents | 85d8166508e4, 2066f6f71952 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/ProtocolVersion.java +8 −1
| @@ -62,7 +62,14 @@ | ||
| 62 | 62 | return new DriverInternalError("Unsupported protocol version " + this); |
| 63 | 63 | } |
| 64 | 64 | |
| 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() { | |
| 66 | 73 | return asInt; |
| 67 | 74 | } |
| 68 | 75 |