Skip to content

Commit

Permalink
Stabilized ServiceBinding classes in dwc and oauth modules
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Nov 12, 2024
1 parent 1646ec6 commit 387ea02
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;
import com.sap.cloud.environment.servicebinding.api.ServiceBinding;
import com.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor;
import com.sap.cloud.environment.servicebinding.api.ServiceIdentifier;
Expand All @@ -30,7 +29,6 @@
*
* @since 4.17.0
*/
@Beta
@Slf4j
public class MegacliteServiceBindingAccessor implements ServiceBindingAccessor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;
import com.sap.cloud.environment.servicebinding.api.ServiceBinding;
import com.sap.cloud.environment.servicebinding.api.ServiceIdentifier;
import com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions.Options;
Expand All @@ -29,7 +28,6 @@
* @see MegacliteServiceBindingAccessor
* @since 4.17.0
*/
@Beta
@Slf4j
public final class MegacliteServiceBindingDestinationLoader implements ServiceBindingDestinationLoader
{
Expand Down Expand Up @@ -147,8 +145,8 @@ MegacliteServiceBinding.MandateConfiguration getMandateConfigurationOrThrow(
private MegacliteServiceBinding getBindingOrThrow( @Nonnull final ServiceBindingDestinationOptions options )
{
final ServiceBinding serviceBinding = options.getServiceBinding();
if( serviceBinding instanceof MegacliteServiceBinding ) {
return (MegacliteServiceBinding) serviceBinding;
if( serviceBinding instanceof MegacliteServiceBinding megacliteServiceBinding ) {
return megacliteServiceBinding;
}
final String msg =
"Unable to transform the provided service binding for service '%s' into a Megaclite based destination. Expected the service binding to be of type '%s' but got a '%s' instead.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import javax.annotation.Nonnull;

import com.google.common.annotations.Beta;
import com.sap.cloud.security.config.ClientIdentity;

/**
Expand All @@ -17,7 +16,6 @@
*
* @since 4.20.0
*/
@Beta
public interface OAuth2PropertySupplier
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import org.apache.http.HttpHeaders;

import com.google.common.annotations.Beta;
import com.sap.cloud.environment.servicebinding.api.ServiceIdentifier;
import com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions.Options;
import com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException;
Expand All @@ -34,7 +33,6 @@
* @since 4.16.0
*/
@Slf4j
@Beta
public class OAuth2ServiceBindingDestinationLoader implements ServiceBindingDestinationLoader
{
@Nonnull
Expand Down

0 comments on commit 387ea02

Please sign in to comment.