Skip to content

Commit

Permalink
Core: Add Javadoc for LoadTableResponse, fix error prone warnings (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
kbendick authored Jun 20, 2022
1 parent a64417c commit 3bd6107
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private RenameTableRequest(TableIdentifier source, TableIdentifier destination)
validate();
}

@Override
public void validate() {
Preconditions.checkArgument(source != null, "Invalid source table: null");
Preconditions.checkArgument(destination != null, "Invalid destination table: null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
import org.apache.iceberg.rest.RESTResponse;

/**
*
* A REST response that is used when a table is successfully loaded.
* <p>
* This class is used whenever the response to a request is a table's requested metadata and the associated location
* of its metadata, to reduce code duplication. This includes using this class as the response for
* {@link org.apache.iceberg.rest.requests.CreateTableRequest}, including when that request is used to commit
* an already staged table creation as part of a transaction.
*/
public class LoadTableResponse implements RESTResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public static class Builder {
private Integer expiresInSeconds;
private final List<String> scopes = Lists.newArrayList();

private Builder() {
}

public Builder withToken(String token) {
this.accessToken = token;
return this;
Expand Down

0 comments on commit 3bd6107

Please sign in to comment.