Skip to content

Commit 21c71ca

Browse files
committed
fix: doc errors.
1 parent 2030f27 commit 21c71ca

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractLazyInitializer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
/**
2020
* Generic {@link AbstractLazyInitializer} for any heavy-weight object that might throw an exception
2121
* during initialization. The underlying object is initialized at most once.
22+
*
23+
* @param <T> Object which is to be initialized lazily
2224
*/
2325
public abstract class AbstractLazyInitializer<T> {
2426
private final Object lock = new Object();

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AsyncTransactionManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ Timestamp get(long timeout, TimeUnit unit)
115115
* executor)
116116
* .commitAsync();
117117
* }</pre>
118+
*
119+
* @param <I>
120+
* @param <O>
118121
*/
119122
interface AsyncTransactionStep<I, O> extends ApiFuture<O> {
120123
/**
@@ -140,6 +143,9 @@ <RES> AsyncTransactionStep<O, RES> then(
140143
* a {@link TransactionContext} and the output value of the previous transaction step as its input
141144
* parameters. The method should return an {@link ApiFuture} that will return the result of this
142145
* step.
146+
*
147+
* @param <I>
148+
* @param <O>
143149
*/
144150
interface AsyncTransactionFunction<I, O> {
145151
/**

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Operation.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232
import javax.annotation.Nullable;
3333
import org.threeten.bp.Duration;
3434

35-
/** Represents a long running operation. */
35+
/**
36+
* Represents a long-running operation.
37+
*
38+
* @param <R>
39+
* @param <M>
40+
*/
3641
// TODO(user): Implement other operations on Operation.
3742
public class Operation<R, M> {
3843

google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.cloud.spanner;
1818

1919
import com.google.cloud.Timestamp;
20+
import com.google.cloud.spanner.Options.TransactionOption;
2021

2122
/**
2223
* An interface for managing the life cycle of a read write transaction including all its retries.
@@ -33,7 +34,7 @@
3334
* can cause resources to be leaked and deadlocks. Easiest way to guarantee this is by calling
3435
* {@link #close()} in a finally block.
3536
*
36-
* @see DatabaseClient#transactionManager()
37+
* @see DatabaseClient#transactionManager(TransactionOption...)
3738
*/
3839
public interface TransactionManager extends AutoCloseable {
3940

google-cloud-spanner/src/main/java/com/google/cloud/spanner/ValueBinder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*
3232
* <p>{@code ValueBinder} subclasses typically carry state and are therefore not thread-safe,
3333
* although the core implementation itself is thread-safe.
34+
*
35+
* @param <R> The context which is used to bind the {@link Value}.
3436
*/
3537
public abstract class ValueBinder<R> {
3638
/**

0 commit comments

Comments
 (0)