Skip to content

Commit 2b8d410

Browse files
committed
Cleanup ReviewBeforeRelease
1 parent 60f4ec9 commit 2b8d410

File tree

36 files changed

+52
-151
lines changed

36 files changed

+52
-151
lines changed

core/aws-core/src/main/java/software/amazon/awssdk/awscore/client/handler/AwsSyncClientHandler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package software.amazon.awssdk.awscore.client.handler;
1717

1818
import software.amazon.awssdk.annotations.Immutable;
19-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2019
import software.amazon.awssdk.annotations.SdkProtectedApi;
2120
import software.amazon.awssdk.annotations.ThreadSafe;
2221
import software.amazon.awssdk.awscore.internal.client.config.AwsClientOptionValidation;
@@ -38,7 +37,6 @@
3837
*/
3938
@ThreadSafe
4039
@Immutable
41-
@ReviewBeforeRelease("This looks identical to the Sdk version, revisit when we add APIG back")
4240
@SdkProtectedApi
4341
public final class AwsSyncClientHandler extends SdkSyncClientHandler implements SyncClientHandler {
4442

core/aws-core/src/main/java/software/amazon/awssdk/awscore/endpoint/DefaultServiceEndpointBuilder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import java.net.URI;
1919
import java.net.URISyntaxException;
2020
import software.amazon.awssdk.annotations.NotThreadSafe;
21-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2221
import software.amazon.awssdk.annotations.SdkProtectedApi;
2322
import software.amazon.awssdk.regions.Region;
2423
import software.amazon.awssdk.regions.ServiceMetadata;
@@ -29,8 +28,8 @@
2928
*/
3029
@NotThreadSafe
3130
@SdkProtectedApi
32-
@ReviewBeforeRelease("We may not need this anymore, we should default to AWS partition when resolving"
33-
+ "a region we don't know about yet.")
31+
// TODO We may not need this anymore, we should default to AWS partition when resolving
32+
// a region we don't know about yet.
3433
public final class DefaultServiceEndpointBuilder {
3534

3635
private final String serviceName;

core/aws-core/src/main/java/software/amazon/awssdk/awscore/eventstream/EventStreamAsyncResponseTransformer.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.util.Queue;
3030
import java.util.concurrent.CompletableFuture;
3131
import java.util.concurrent.Executor;
32-
import java.util.concurrent.Executors;
3332
import java.util.concurrent.atomic.AtomicBoolean;
3433
import java.util.concurrent.atomic.AtomicLong;
3534
import java.util.concurrent.atomic.AtomicReference;
@@ -38,7 +37,6 @@
3837
import org.reactivestreams.Subscription;
3938
import org.slf4j.Logger;
4039
import org.slf4j.LoggerFactory;
41-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
4240
import software.amazon.awssdk.annotations.SdkProtectedApi;
4341
import software.amazon.awssdk.core.SdkResponse;
4442
import software.amazon.awssdk.core.async.AsyncResponseTransformer;
@@ -166,17 +164,6 @@ public class EventStreamAsyncResponseTransformer<ResponseT, EventT>
166164
*/
167165
private String extendedRequestId = null;
168166

169-
@Deprecated
170-
@ReviewBeforeRelease("Remove this on full GA of 2.0.0")
171-
public EventStreamAsyncResponseTransformer(
172-
EventStreamResponseHandler<ResponseT, EventT> eventStreamResponseHandler,
173-
HttpResponseHandler<? extends ResponseT> initialResponseHandler,
174-
HttpResponseHandler<? extends EventT> eventResponseHandler,
175-
HttpResponseHandler<? extends Throwable> exceptionResponseHandler) {
176-
this(eventStreamResponseHandler, initialResponseHandler, eventResponseHandler, exceptionResponseHandler,
177-
Executors.newSingleThreadScheduledExecutor(), new CompletableFuture<>(), "");
178-
}
179-
180167
private EventStreamAsyncResponseTransformer(
181168
EventStreamResponseHandler<ResponseT, EventT> eventStreamResponseHandler,
182169
HttpResponseHandler<? extends ResponseT> initialResponseHandler,

core/aws-core/src/main/java/software/amazon/awssdk/awscore/util/AwsHostNameUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
import java.util.Optional;
1919
import java.util.regex.Matcher;
2020
import java.util.regex.Pattern;
21-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2221
import software.amazon.awssdk.annotations.SdkProtectedApi;
2322
import software.amazon.awssdk.regions.Region;
2423

2524
@SdkProtectedApi
26-
@ReviewBeforeRelease("This isn't used for as many services as it supports. Can we simplify or remove it?")
25+
//TODO This isn't used for as many services as it supports. Can we simplify or remove it?
2726
public final class AwsHostNameUtils {
2827

2928
private static final Pattern S3_ENDPOINT_PATTERN =

core/protocols/aws-ion-protocol/src/main/java/software/amazon/awssdk/protocols/ion/internal/IonErrorCodeParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import org.slf4j.Logger;
1919
import org.slf4j.LoggerFactory;
20-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2120
import software.amazon.awssdk.annotations.SdkInternalApi;
2221
import software.amazon.awssdk.core.exception.SdkClientException;
2322
import software.amazon.awssdk.http.SdkHttpFullResponse;
@@ -28,7 +27,7 @@
2827
import software.amazon.ion.IonSystem;
2928
import software.amazon.ion.IonType;
3029

31-
@ReviewBeforeRelease("Clean up ION parser")
30+
//TODO Clean up ION parser
3231
@SdkInternalApi
3332
class IonErrorCodeParser implements ErrorCodeParser {
3433
private static final Logger log = LoggerFactory.getLogger(IonErrorCodeParser.class);

core/protocols/aws-json-protocol/src/main/java/software/amazon/awssdk/protocols/json/JsonContent.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.io.IOException;
2121
import org.slf4j.Logger;
2222
import org.slf4j.LoggerFactory;
23-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2423
import software.amazon.awssdk.annotations.SdkProtectedApi;
2524
import software.amazon.awssdk.http.SdkHttpFullResponse;
2625
import software.amazon.awssdk.protocols.json.internal.dom.JsonDomParser;
@@ -32,7 +31,7 @@
3231
* Simple struct like class to hold both the raw json string content and it's parsed JsonNode
3332
*/
3433
@SdkProtectedApi
35-
@ReviewBeforeRelease("Do we need this? It isn't well encapsulated because of storing non-copied arrays.")
34+
//TODO Do we need this? It isn't well encapsulated because of storing non-copied arrays.
3635
public class JsonContent {
3736

3837
private static final Logger LOG = LoggerFactory.getLogger(JsonContent.class);

core/protocols/aws-json-protocol/src/main/java/software/amazon/awssdk/protocols/json/SdkJsonGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.math.BigInteger;
2424
import java.nio.ByteBuffer;
2525
import java.time.Instant;
26-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2726
import software.amazon.awssdk.annotations.SdkProtectedApi;
2827
import software.amazon.awssdk.core.exception.SdkClientException;
2928
import software.amazon.awssdk.utils.BinaryUtils;
@@ -198,7 +197,7 @@ public StructuredJsonGenerator writeValue(ByteBuffer bytes) {
198197
}
199198

200199
@Override
201-
@ReviewBeforeRelease("This date formatting is coupled to AWS's format. Should we generalize it?")
200+
//TODO: This date formatting is coupled to AWS's format. Should generalize it
202201
public StructuredJsonGenerator writeValue(Instant instant) {
203202
try {
204203
generator.writeNumber(DateUtils.formatUnixTimestampInstant(instant));

core/regions/src/main/java/software/amazon/awssdk/regions/internal/util/ConnectionUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
import java.net.Proxy;
2121
import java.net.URI;
2222
import java.util.Map;
23-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2423
import software.amazon.awssdk.annotations.SdkInternalApi;
2524

2625
@SdkInternalApi
27-
@ReviewBeforeRelease("Refactor to use SDK HTTP client instead of URL connection, also consider putting EC2MetadataClient into "
28-
+ "its own module")
26+
//TODO: Refactor to use SDK HTTP client instead of URL connection, also consider putting EC2MetadataClient in its own module
2927
public class ConnectionUtils {
3028

3129
public static ConnectionUtils create() {

core/regions/src/main/java/software/amazon/awssdk/regions/internal/util/EC2MetadataUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.concurrent.ConcurrentHashMap;
3535
import org.slf4j.Logger;
3636
import org.slf4j.LoggerFactory;
37-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
3837
import software.amazon.awssdk.annotations.SdkInternalApi;
3938
import software.amazon.awssdk.core.SdkSystemSetting;
4039
import software.amazon.awssdk.core.exception.SdkClientException;
@@ -61,7 +60,7 @@
6160
* href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html">Amazon
6261
* EC2 User Guide: Instance Metadata</a>
6362
*/
64-
@ReviewBeforeRelease("Cleanup")
63+
//TODO: cleanup
6564
@SdkInternalApi
6665
public final class EC2MetadataUtils {
6766

core/sdk-core/src/main/java/software/amazon/awssdk/core/client/config/SdkAdvancedClientOption.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
package software.amazon.awssdk.core.client.config;
1717

18-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
1918
import software.amazon.awssdk.annotations.SdkPublicApi;
2019
import software.amazon.awssdk.core.signer.Signer;
2120

@@ -34,13 +33,11 @@ public class SdkAdvancedClientOption<T> extends ClientOption<T> {
3433
/**
3534
* Set the prefix of the user agent that is sent with each request to AWS.
3635
*/
37-
@ReviewBeforeRelease("This should either be changed when we refactor metrics, or the comment should be expanded upon.")
3836
public static final SdkAdvancedClientOption<String> USER_AGENT_PREFIX = new SdkAdvancedClientOption<>(String.class);
3937

4038
/**
4139
* Set the suffix of the user agent that is sent with each request to AWS.
4240
*/
43-
@ReviewBeforeRelease("This should either be changed when we refactor metrics, or the comment should be expanded upon.")
4441
public static final SdkAdvancedClientOption<String> USER_AGENT_SUFFIX = new SdkAdvancedClientOption<>(String.class);
4542

4643
/**

core/sdk-core/src/main/java/software/amazon/awssdk/core/client/handler/ClientExecutionParams.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package software.amazon.awssdk.core.client.handler;
1717

1818
import software.amazon.awssdk.annotations.NotThreadSafe;
19-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2019
import software.amazon.awssdk.annotations.SdkProtectedApi;
2120
import software.amazon.awssdk.core.SdkRequest;
2221
import software.amazon.awssdk.core.async.AsyncRequestBody;
@@ -33,7 +32,6 @@
3332
*/
3433
@SdkProtectedApi
3534
@NotThreadSafe
36-
@ReviewBeforeRelease("Using old style withers/getters")
3735
public final class ClientExecutionParams<InputT extends SdkRequest, OutputT> {
3836

3937
private InputT input;

core/sdk-core/src/main/java/software/amazon/awssdk/core/exception/SdkInterruptedException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717

1818
import java.io.InputStream;
1919
import java.util.Optional;
20-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2120
import software.amazon.awssdk.annotations.SdkPublicApi;
2221
import software.amazon.awssdk.http.SdkHttpFullResponse;
2322

2423
@SdkPublicApi
25-
@ReviewBeforeRelease("Consider combining this with AbortedException")
2624
public final class SdkInterruptedException extends InterruptedException {
2725

2826
private static final long serialVersionUID = 8194951388566545094L;

core/sdk-core/src/main/java/software/amazon/awssdk/core/http/ExecutionContext.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package software.amazon.awssdk.core.http;
1717

1818
import software.amazon.awssdk.annotations.NotThreadSafe;
19-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2019
import software.amazon.awssdk.annotations.SdkProtectedApi;
2120
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
2221
import software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain;
@@ -52,8 +51,8 @@ public InterceptorContext interceptorContext() {
5251
return interceptorContext;
5352
}
5453

55-
@ReviewBeforeRelease("We should switch to fully immutable execution contexts. Currently, we mutate it for the interceptor "
56-
+ "context, credential providers, etc.")
54+
//TODO: We should switch to fully immutable execution contexts. Currently, we mutate it for the interceptor
55+
//context, credential providers, etc
5756
public ExecutionContext interceptorContext(InterceptorContext interceptorContext) {
5857
this.interceptorContext = interceptorContext;
5958
return this;

core/sdk-core/src/main/java/software/amazon/awssdk/core/interceptor/ClasspathInterceptorChainFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.List;
2828
import java.util.stream.Collectors;
2929
import java.util.stream.Stream;
30-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
3130
import software.amazon.awssdk.annotations.SdkProtectedApi;
3231
import software.amazon.awssdk.core.exception.SdkClientException;
3332
import software.amazon.awssdk.core.internal.util.ClassLoaderHelper;
@@ -136,7 +135,6 @@ private ExecutionInterceptor createExecutionInterceptor(String interceptorClassN
136135
}
137136
}
138137

139-
@ReviewBeforeRelease("Can we hard-code our required global and service interceptors and just have this log a warning?")
140138
private ClassLoader classLoader() {
141139
return Validate.notNull(ClassLoaderHelper.classLoader(),
142140
"Failed to load the classloader for the current thread or the system.");

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/AmazonAsyncHttpClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder.async;
1919

2020
import java.util.concurrent.CompletableFuture;
21-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2221
import software.amazon.awssdk.annotations.SdkInternalApi;
2322
import software.amazon.awssdk.annotations.ThreadSafe;
2423
import software.amazon.awssdk.core.SdkRequest;
@@ -51,7 +50,7 @@
5150

5251
@ThreadSafe
5352
@SdkInternalApi
54-
@ReviewBeforeRelease("come up with better name")
53+
//TODO: come up with better name
5554
public final class AmazonAsyncHttpClient implements SdkAutoCloseable {
5655
private final HttpClientDependencies httpClientDependencies;
5756

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/AmazonSyncHttpClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
package software.amazon.awssdk.core.internal.http;
1717

18-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
1918
import software.amazon.awssdk.annotations.SdkInternalApi;
2019
import software.amazon.awssdk.annotations.ThreadSafe;
2120
import software.amazon.awssdk.core.SdkRequest;
@@ -54,8 +53,7 @@
5453

5554
@ThreadSafe
5655
@SdkInternalApi
57-
@ReviewBeforeRelease("come up with better name, Also this can be moved to an internal package if we "
58-
+ "deal with HttpTestUtils.")
56+
// TODO come up with better name
5957
public final class AmazonSyncHttpClient implements SdkAutoCloseable {
6058
private final HttpClientDependencies httpClientDependencies;
6159

@@ -174,7 +172,7 @@ private class RequestExecutionBuilderImpl implements RequestExecutionBuilder {
174172
private ExecutionContext executionContext;
175173

176174
@Override
177-
@ReviewBeforeRelease("This is duplicating information in the interceptor context. Can they be consolidated?")
175+
// This is duplicating information in the interceptor context. Can they be consolidated?
178176
public RequestExecutionBuilder request(SdkHttpFullRequest request) {
179177
this.request = request;
180178
return this;

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/RequestExecutionContext.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
package software.amazon.awssdk.core.internal.http;
1717

18-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
1918
import software.amazon.awssdk.annotations.SdkInternalApi;
2019
import software.amazon.awssdk.core.RequestOverrideConfiguration;
2120
import software.amazon.awssdk.core.SdkRequest;
@@ -71,8 +70,6 @@ public ExecutionAttributes executionAttributes() {
7170
return executionContext.executionAttributes();
7271
}
7372

74-
@ReviewBeforeRelease("We should combine RequestExecutionContext and ExecutionContext. There's no benefit to both of "
75-
+ "these. Once that's done, this won't be needed.")
7673
public ExecutionContext executionContext() {
7774
return executionContext;
7875
}

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/loader/ClasspathSdkHttpServiceProvider.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import java.util.Iterator;
1919
import java.util.Optional;
2020
import java.util.ServiceLoader;
21-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2221
import software.amazon.awssdk.annotations.SdkInternalApi;
2322
import software.amazon.awssdk.annotations.SdkTestInternalApi;
2423
import software.amazon.awssdk.core.SdkSystemSetting;
@@ -46,7 +45,6 @@ final class ClasspathSdkHttpServiceProvider<T> implements SdkHttpServiceProvider
4645
}
4746

4847
@Override
49-
@ReviewBeforeRelease("Add some links to doc topics on configuring HTTP impl")
5048
public Optional<T> loadService() {
5149
Iterator<T> httpServices = serviceLoader.loadServices(serviceClass);
5250
if (!httpServices.hasNext()) {

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/pipeline/stages/HandleResponseStage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.util.Optional;
2020
import org.slf4j.Logger;
2121
import org.slf4j.LoggerFactory;
22-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2322
import software.amazon.awssdk.annotations.SdkInternalApi;
2423
import software.amazon.awssdk.core.SdkStandardLogger;
2524
import software.amazon.awssdk.core.exception.RetryableException;
@@ -38,7 +37,7 @@
3837
*
3938
* @param <OutputT> Type of successful unmarshalled POJO.
4039
*/
41-
@ReviewBeforeRelease("Should this be broken up? It's doing quite a lot...")
40+
// TODO: Should this be broken up? It's doing quite a lot...
4241
@SdkInternalApi
4342
public class HandleResponseStage<OutputT> implements RequestPipeline<SdkHttpFullResponse, Response<OutputT>> {
4443
private static final Logger log = LoggerFactory.getLogger(HandleResponseStage.class);

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/pipeline/stages/MoveParametersToBodyStage.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import java.io.ByteArrayInputStream;
2222
import java.nio.charset.StandardCharsets;
23-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2423
import software.amazon.awssdk.annotations.SdkInternalApi;
2524
import software.amazon.awssdk.core.internal.http.RequestExecutionContext;
2625
import software.amazon.awssdk.core.internal.http.pipeline.MutableRequestToRequestPipeline;
@@ -30,8 +29,7 @@
3029
import software.amazon.awssdk.utils.http.SdkHttpUtils;
3130

3231
@SdkInternalApi
33-
@ReviewBeforeRelease("Might only need to do this for certain protocols - ie query?")
34-
// TODO how is this going to work with streaming input posts in asyncland
32+
//TODO Might only need to do this for certain protocols - ie query?
3533
public final class MoveParametersToBodyStage implements MutableRequestToRequestPipeline {
3634
@Override
3735
public SdkHttpFullRequest.Builder execute(SdkHttpFullRequest.Builder input, RequestExecutionContext context) {

core/sdk-core/src/main/java/software/amazon/awssdk/core/runtime/package-info.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/internal/utils/BetterFixedChannelPool.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
import java.util.concurrent.ScheduledFuture;
3131
import java.util.concurrent.TimeUnit;
3232
import java.util.concurrent.TimeoutException;
33-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
3433

3534
/**
3635
* {@link ChannelPool} implementation that takes another {@link ChannelPool} implementation and enforce a maximum
3736
* number of concurrent connections.
3837
*/
39-
@ReviewBeforeRelease("Contribute me back to Netty")
38+
//TODO: Contribute me back to Netty
4039
public class BetterFixedChannelPool implements ChannelPool {
4140
private static final IllegalStateException FULL_EXCEPTION = ThrowableUtil.unknownStackTrace(
4241
new IllegalStateException("Too many outstanding acquire operations"),

0 commit comments

Comments
 (0)