Elffuss BraidHub

kikocis/java-driver public

Fix javadocs warnings.

This commit also promotes TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution
to public because it was referenced from public methods.
Changeset584976b4bce4cf54c13ca45657c0e6b0d0eef7cdcb9c48b572a4d4bff6c4455d
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-26 11:28 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-01-04 18:04 +01:00
Parents9ef4091fabd4

Browse the files at this changeset

9 files changed

modified driver-core/src/main/java/com/datastax/driver/core/CodecRegistry.java +2 −2
@@ -80,7 +80,7 @@
8080 * <li>all driver types that implement {@link GettableByIndexData}, {@link GettableByNameData},
8181 * {@link SettableByIndexData} and/or {@link SettableByNameData}. Namely: {@link Row},
8282 * {@link BoundStatement}, {@link UDTValue} and {@link TupleValue};</li>
83- * <li>{@link SimpleStatement(String, Object...) simple statements};</li>
83+ * <li>{@link SimpleStatement#SimpleStatement(String, Object...) simple statements};</li>
8484 * <li>statements created with the {@link com.datastax.driver.core.querybuilder.QueryBuilder Query builder}.</li>
8585 * </ul>
8686 * <p/>
@@ -378,7 +378,7 @@
378378 * Furthermore, this method returns the first matching codec, regardless of its accepted CQL type.
379379 * It should be reserved for situations where the target CQL type is not available or unknown.
380380 * In the Java driver, this happens mainly when serializing a value in a
381- * {@link SimpleStatement(String, Object...) SimpleStatement} or in the
381+ * {@link SimpleStatement#SimpleStatement(String, Object...) SimpleStatement} or in the
382382 * {@link com.datastax.driver.core.querybuilder.QueryBuilder}, where no CQL type information is available.
383383 * <p/>
384384 * Codecs returned by this method are <em>NOT</em> cached (see the {@link CodecRegistry top-level documentation}
modified driver-core/src/main/java/com/datastax/driver/core/ParseUtils.java +4 −8
@@ -266,8 +266,7 @@
266266 * to parse date strings)..
267267 *
268268 * @throws ParseException If the given string is not a valid ISO-8601 date.
269- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
270- * section of CQL specification.
269+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
271270 */
272271 public static Date parseDate(String str) throws ParseException {
273272 SimpleDateFormat parser = new SimpleDateFormat();
@@ -301,8 +300,7 @@
301300 * to parse date strings)..
302301 *
303302 * @throws ParseException If the given string cannot be parsed with the given pattern.
304- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
305- * section of CQL specification.
303+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
306304 */
307305 public static Date parseDate(String str, String pattern) throws ParseException {
308306 SimpleDateFormat parser = new SimpleDateFormat();
@@ -335,8 +333,7 @@
335333 * @param str The string to parse.
336334 * @return A long value representing the number of nanoseconds since midnight.
337335 * @throws ParseException if the string cannot be parsed.
338- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a>
339- * section of CQL specification.
336+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a>
340337 */
341338 public static long parseTime(String str) throws ParseException {
342339 String nanos_s;
@@ -403,8 +400,7 @@
403400 *
404401 * @param value A long value representing the number of nanoseconds since midnight.
405402 * @return The formatted value.
406- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a>
407- * section of CQL specification.
403+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a>
408404 */
409405 public static String formatTime(long value) {
410406 int nano = (int) (value % 1000000000);
modified driver-core/src/main/java/com/datastax/driver/core/Session.java +3 −3
@@ -115,7 +115,7 @@
115115 *
116116 * @param query the CQL query to execute.
117117 * @param values values required for the execution of {@code query}. See
118- * {@link SimpleStatement(String, Object...)} for more detail.
118+ * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail.
119119 * @return the result of the query. That result will never be null but can
120120 * be empty (and will be for any non SELECT query).
121121 * @throws NoHostAvailableException if no host in the cluster can be
@@ -141,7 +141,7 @@
141141 * guarantee that if the request is invalid, an exception will be thrown
142142 * by this method.
143143 *
144- * @param statement the CQL query to execute (that can be any {@code Statement}).
144+ * @param statement the CQL query to execute (that can be any {@link Statement}).
145145 * @return the result of the query. That result will never be null but can
146146 * be empty (and will be for any non SELECT query).
147147 * @throws NoHostAvailableException if no host in the cluster can be
@@ -175,7 +175,7 @@
175175 *
176176 * @param query the CQL query to execute.
177177 * @param values values required for the execution of {@code query}. See
178- * {@link SimpleStatement(String, Object...)} for more detail.
178+ * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail.
179179 * @return a future on the result of the query.
180180 * @throws UnsupportedFeatureException if version 1 of the protocol
181181 * is in use (i.e. if you've force version 1 through {@link Cluster.Builder#withProtocolVersion}
modified driver-core/src/main/java/com/datastax/driver/core/policies/IdempotenceAwareRetryPolicy.java +1 −1
@@ -21,7 +21,7 @@
2121 /**
2222 * A retry policy that avoids retrying non-idempotent statements.
2323 * <p/>
24- * In case of write timeouts or unexpected errors, this policy will always return {@link RetryDecision#rethrow()}
24+ * In case of write timeouts or unexpected errors, this policy will always return {@link com.datastax.driver.core.policies.RetryPolicy.RetryDecision#rethrow()}
2525 * if the statement is deemed non-idempotent (see {@link #isIdempotent(Statement)}).
2626 * <p/>
2727 * For all other cases, this policy delegates the decision to the child policy.
modified driver-core/src/main/java/com/datastax/driver/core/schemabuilder/TableOptions.java +1 −1
@@ -806,7 +806,7 @@
806806 */
807807 public static class DateTieredCompactionStrategyOptions extends CompactionOptions<DateTieredCompactionStrategyOptions> {
808808
809- enum TimeStampResolution {MICROSECONDS, MILLISECONDS}
809+ public enum TimeStampResolution {MICROSECONDS, MILLISECONDS}
810810
811811 private Optional<Integer> baseTimeSeconds = Optional.absent();
812812
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/InstantCodec.java +1 −2
@@ -45,8 +45,7 @@
4545 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
4646 *
4747 * @see ZonedDateTimeCodec
48- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
49- * section of CQL specification.
48+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5049 */
5150 public class InstantCodec extends TypeCodec<Instant> {
5251
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/ZonedDateTimeCodec.java +1 −2
@@ -51,8 +51,7 @@
5151 * timestamps using an ISO-8601 format that includes milliseconds.
5252 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
5353 *
54- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
55- * section of CQL specification.
54+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5655 */
5756 public class ZonedDateTimeCodec extends TypeCodec.AbstractTupleCodec<ZonedDateTime> {
5857
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/DateTimeCodec.java +1 −2
@@ -50,8 +50,7 @@
5050 * timestamps using an ISO-8601 format that includes nanoseconds.
5151 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
5252 *
53- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
54- * section of CQL specification.
53+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5554 */
5655 public class DateTimeCodec extends TypeCodec.AbstractTupleCodec<DateTime> {
5756
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/InstantCodec.java +1 −2
@@ -43,8 +43,7 @@
4343 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
4444 *
4545 * @see DateTimeCodec
46- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
47- * section of CQL specification.
46+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
4847 */
4948 public class InstantCodec extends TypeCodec<Instant> {
5049