Elffuss BraidHub

kikocis/java-driver public

Undeprecate BoundStatement
Changesete77c18e77e4a01dec498ea75304a8dcced78fd9bf02c5818e16d3f014dc47051
AuthorSylvain Lebresne <sylvain@datastax.com> · 2013-12-13 15:36 +01:00
CommitterSylvain Lebresne <sylvain@datastax.com> · 2013-12-13 15:36 +01:00
Parents64c589fc9301

Browse the files at this changeset

2 files changed

modified driver-core/src/main/java/com/datastax/driver/core/BoundStatement.java +0 −4
@@ -51,11 +51,7 @@
5151 * Creates a new {@code BoundStatement} from the provided prepared
5252 * statement.
5353 * @param statement the prepared statement from which to create a {@code BoundStatement}.
54- *
55- * @deprecated this constructor is now deprecated an will removed (made private) in
56- * version 2 of the driver. Instead, you are encouraged to use {@link PreparedStatement#bind()}.
5754 */
58- @Deprecated
5955 public BoundStatement(PreparedStatement statement) {
6056 this.statement = statement;
6157 this.values = new ByteBuffer[statement.getVariables().size()];
modified driver-core/src/main/java/com/datastax/driver/core/PreparedStatement.java +1 −1
@@ -139,7 +139,7 @@
139139 * to values by another mean because the resulting {@code BoundStatement}
140140 * being executable.
141141 * <p>
142- * This method is a convenience for {@code bind().bind(...)}.
142+ * This method is a convenience for {@code new BoundStatement(this).bind(...)}.
143143 *
144144 * @param values the values to bind to the variables of the newly created
145145 * BoundStatement.