Skip to content

Commit 5d800ce

Browse files
ludochgae-java-bot
authored andcommitted
Suppress build warnings in App Engine API classes, they are OK. Fixed javadoc warnings.
PiperOrigin-RevId: 858056935 Change-Id: I94290f1419eb967913ec17a1158e85a684900d15
1 parent 857fec4 commit 5d800ce

31 files changed

Lines changed: 62 additions & 17 deletions

File tree

api/src/main/java/com/google/appengine/api/appidentity/IAppIdentityServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*/
2828
@AutoService(FactoryProvider.class)
2929
@ServiceProvider(precedence = Integer.MIN_VALUE)
30+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3031
public final class IAppIdentityServiceFactoryProvider
3132
extends FactoryProvider<IAppIdentityServiceFactory> {
3233

api/src/main/java/com/google/appengine/api/backends/IBackendServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IBackendServiceFactoryProvider extends FactoryProvider<IBackendServiceFactory> {
3233

3334
private final BackendServiceFactoryImpl implementation = new BackendServiceFactoryImpl();

api/src/main/java/com/google/appengine/api/blobstore/IBlobstoreServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IBlobstoreServiceFactoryProvider
3233
extends FactoryProvider<IBlobstoreServiceFactory> {
3334

api/src/main/java/com/google/appengine/api/capabilities/ICapabilitiesServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class ICapabilitiesServiceFactoryProvider
3233
extends FactoryProvider<ICapabilitiesServiceFactory> {
3334

api/src/main/java/com/google/appengine/api/datastore/FutureHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ private static RuntimeException propagateAsRuntimeException(ExecutionException e
128128
* @param <K> The type used by sub-futures.
129129
* @param <V> The type returned by this future.
130130
*/
131+
@SuppressWarnings("ShouldNotSubclass")
131132
abstract static class MultiFuture<K, V> implements Future<V> {
132133
protected final Iterable<Future<K>> futures;
133134

@@ -168,6 +169,7 @@ public boolean isDone() {
168169
* is called. This is important because if get() throws an exception, we don't want that exception
169170
* to resurface when the txn gets committed or rolled back.
170171
*/
172+
@SuppressWarnings("ShouldNotSubclass")
171173
static final class TxnAwareFuture<T> implements Future<T> {
172174
private final Future<T> future;
173175
private final Transaction txn;
@@ -213,6 +215,7 @@ public T get(long timeout, TimeUnit unit)
213215
*
214216
* @param <T> The type of the Future.
215217
*/
218+
@SuppressWarnings("ShouldNotSubclass")
216219
static class FakeFuture<T extends @Nullable Object> implements Future<T> {
217220
private final T result;
218221

api/src/main/java/com/google/appengine/api/datastore/IDatastoreServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IDatastoreServiceFactoryProvider
3233
extends FactoryProvider<IDatastoreServiceFactory> {
3334

api/src/main/java/com/google/appengine/api/images/IImagesServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IImagesServiceFactoryProvider extends FactoryProvider<IImagesServiceFactory> {
3233

3334
private final ImagesServiceFactoryImpl implementation = new ImagesServiceFactoryImpl();

api/src/main/java/com/google/appengine/api/log/ILogServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class ILogServiceFactoryProvider extends FactoryProvider<ILogServiceFactory> {
3233

3334
private final LogServiceFactoryImpl implementation = new LogServiceFactoryImpl();

api/src/main/java/com/google/appengine/api/mail/IMailServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IMailServiceFactoryProvider extends FactoryProvider<IMailServiceFactory> {
3233

3334
private final MailServiceFactoryImpl implementation = new MailServiceFactoryImpl();

api/src/main/java/com/google/appengine/api/memcache/IMemcacheServiceFactoryProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
@AutoService(FactoryProvider.class)
3030
@ServiceProvider(precedence = Integer.MIN_VALUE)
31+
@SuppressWarnings({"rawtypes", "UnnecessaryJavacSuppressWarnings"})
3132
public final class IMemcacheServiceFactoryProvider
3233
extends FactoryProvider<IMemcacheServiceFactory> {
3334

0 commit comments

Comments
 (0)