Skip to content

Commit 42bca4c

Browse files
authored
Merge pull request #238 from elharo/warnings
Fix assorted compiler warnings
2 parents 3f6b85f + 058ca50 commit 42bca4c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

datastore-v1-proto-client/src/main/java/com/google/datastore/v1/client/DatastoreFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* Client factory for {@link Datastore}.
3737
*/
3838
public class DatastoreFactory {
39-
private static final Logger logger = Logger.getLogger(DatastoreFactory.class.getName());
4039

4140
// Lazy load this because we might be running inside App Engine and this
4241
// class isn't on the whitelist.
@@ -61,7 +60,7 @@ public static DatastoreFactory get() {
6160
*
6261
* @throws IllegalArgumentException if the server or credentials weren't provided.
6362
*/
64-
public Datastore create(DatastoreOptions options) throws IllegalArgumentException {
63+
public Datastore create(DatastoreOptions options) {
6564
return new Datastore(newRemoteRpc(options));
6665
}
6766

datastore-v1-proto-client/src/main/java/com/google/datastore/v1/client/DatastoreOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ public Builder localHost(String localHost) {
135135
}
136136

137137
/**
138-
* @deprecated Use {@link #projectId} and/or {@link #host}/{@link #localHost} instead.
139-
*
140138
* Sets the project endpoint used to access Cloud Datastore. Prefer using {@link #projectId}
141139
* and/or {@link #host}/{@link #localHost} when possible.
140+
*
141+
* @deprecated Use {@link #projectId} and/or {@link #host}/{@link #localHost} instead.
142142
*/
143143
@Deprecated
144144
public Builder projectEndpoint(String projectEndpoint) {

0 commit comments

Comments
 (0)