Skip to content

Commit

Permalink
[Stabilize] Remove @Beta annotation from RequestHeaderAccessor API (#…
Browse files Browse the repository at this point in the history
…628)

Co-authored-by: Alexander Dümont <[email protected]>
Co-authored-by: Charles Dubois <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent 9dd90d7 commit b1066b8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@

import javax.annotation.Nullable;

import com.google.common.annotations.Beta;

import lombok.RequiredArgsConstructor;

/**
* Thrown if the request headers cannot be accessed.
*/
@RequiredArgsConstructor
@Beta
public class RequestHeadersAccessException extends RuntimeException
{
private static final long serialVersionUID = -4402302735368094185L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
Expand All @@ -28,7 +27,6 @@
/**
* Default implementation of the {@link RequestHeaderContainer} interface.
*/
@Beta
@EqualsAndHashCode
@RequiredArgsConstructor( access = AccessLevel.PRIVATE )
public final class DefaultRequestHeaderContainer implements RequestHeaderContainer
Expand Down Expand Up @@ -137,7 +135,6 @@ public String toString()
* Implementation of the {@link RequestHeaderContainer.Builder} interface that is able to construct and manipulate
* {@link DefaultRequestHeaderContainer}s.
*/
@Beta
@NoArgsConstructor( access = AccessLevel.PRIVATE )
public static class Builder implements RequestHeaderContainer.Builder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.google.common.annotations.Beta;
import com.sap.cloud.sdk.cloudplatform.thread.ThreadContextAccessor;
import com.sap.cloud.sdk.cloudplatform.thread.ThreadContextExecutor;

Expand All @@ -18,7 +17,6 @@
/**
* Default implementation of the {@link RequestHeaderFacade} interface.
*/
@Beta
public class DefaultRequestHeaderFacade implements RequestHeaderFacade
{
@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.google.common.annotations.Beta;
import com.sap.cloud.sdk.cloudplatform.exception.RequestHeadersAccessException;
import com.sap.cloud.sdk.cloudplatform.thread.Executable;
import com.sap.cloud.sdk.cloudplatform.thread.exception.ThreadContextExecutionException;
Expand Down Expand Up @@ -47,7 +46,6 @@ public final class RequestHeaderAccessor
* The {@link RequestHeaderFacade} to use, or {@code null} if the default {@link RequestHeaderFacade}
* should be used.
*/
@Beta
public static void setHeaderFacade( @Nullable final RequestHeaderFacade requestHeaderFacade )
{
headerFacade = Objects.requireNonNullElseGet(requestHeaderFacade, DefaultRequestHeaderFacade::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;

/**
* Represents an <b>immutable</b> container for multiple HTTP headers. These headers consist of a {@code name} and
* multiple {@code value}s.
Expand Down Expand Up @@ -101,7 +99,6 @@ public Builder toBuilder()
/**
* Convenience class for constructing and manipulating {@link RequestHeaderContainer}s.
*/
@Beta
interface Builder
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;

import io.vavr.control.Try;

/**
* This class provides access to the {@link RequestHeaderContainer} for the current context.
*/
@FunctionalInterface
@Beta
public interface RequestHeaderFacade
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.google.common.annotations.Beta;
import com.sap.cloud.sdk.cloudplatform.thread.Property;
import com.sap.cloud.sdk.cloudplatform.thread.ThreadContext;
import com.sap.cloud.sdk.cloudplatform.thread.ThreadContextListener;
Expand All @@ -18,7 +17,6 @@
* Implementation of {@link ThreadContextListener} that ensures the correct initialization of the
* {@link RequestHeaderContainer} when working with non-container managed threads on all supported Cloud platforms.
*/
@Beta
@Slf4j
public class RequestHeaderThreadContextListener implements ThreadContextListener
{
Expand Down
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### 📈 Improvements

- Stabilize experimental OData client API without changes.
- Stabilize RequestHeaderAccessor related API without changes.

### 🐛 Fixed Issues

Expand Down

0 comments on commit b1066b8

Please sign in to comment.