Elffuss BraidHub

kikocis/java-driver public

Fix method visibility.
Changeset96696c6c377e6b2859a216c07c38a958e6d731f6150212971d2be0fbe445234e
Authorolim7t <omichallat+github@gmail.com> · 2015-12-10 13:43 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-12-10 13:44 +01:00
Parents2d16cc18c9f6

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/querybuilder/Utils.java +8 −5
@@ -270,11 +270,12 @@
270270 }
271271
272272 /**
273- * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}.
274- * <p/>
275273 * Utility method to serialize user-provided values.
276274 * <p/>
277- * This method is useful in situations where there is no metadata available and the underlying CQL
275+ * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}, it was duplicated
276+ * to avoid having to make it public.
277+ * <p/>
278+ * It is useful in situations where there is no metadata available and the underlying CQL
278279 * type for the values is not known.
279280 * <p/>
280281 * This situation happens when a {@link com.datastax.driver.core.SimpleStatement}
@@ -290,7 +291,7 @@
290291 * @param codecRegistry The {@link CodecRegistry} to use.
291292 * @return The converted values.
292293 */
293- public static ByteBuffer[] convert(Object[] values, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
294+ static ByteBuffer[] convert(Object[] values, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
294295 ByteBuffer[] serializedValues = new ByteBuffer[values.length];
295296 for (int i = 0; i < values.length; i++) {
296297 Object value = values[i];
@@ -317,9 +318,11 @@
317318 }
318319
319320 /**
320- * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}.
321321 * Utility method to assemble different routing key components into a single {@link ByteBuffer}.
322322 * Mainly intended for statements that need to generate a routing key out of their current values.
323+ * <p/>
324+ * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}, it was duplicated
325+ * to avoid having to make it public.
323326 *
324327 * @param buffers the components of the routing key.
325328 * @return A ByteBuffer containing the serialized routing key