Skip to content

Commit 3c2b49b

Browse files
dependabot[bot]Johannes Schneider
andauthored
chore: [DevOps] bump the plugins group across 1 directory with 7 updates (#421)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Johannes Schneider <[email protected]>
1 parent 61dc8d3 commit 3c2b49b

File tree

27 files changed

+80
-137
lines changed

27 files changed

+80
-137
lines changed

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ updates:
6060
groups:
6161
github-actions:
6262
patterns:
63-
- "*"
63+
- "*"

cloudplatform/cloudplatform-connectivity/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/PrincipalPropagationMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ static PrincipalPropagationMode ofIdentifier( final String identifier )
6161
return mode;
6262
}
6363
}
64-
return PrincipalPropagationMode.UNKNOWN;
64+
return UNKNOWN;
6565
}
6666
}

cloudplatform/cloudplatform-connectivity/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/ProxyType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static ProxyType ofIdentifierSensitive( @Nonnull final String identifier
127127
if( identifier.equalsIgnoreCase("onpremise")
128128
|| identifier.equalsIgnoreCase("on-premise")
129129
|| identifier.equalsIgnoreCase("on_premise") ) {
130-
return ProxyType.ON_PREMISE;
130+
return ON_PREMISE;
131131
}
132132

133133
throw new IllegalArgumentException("Unknown " + ProxyType.class.getSimpleName() + ": " + identifier + ".");

cloudplatform/cloudplatform-core/src/main/java/com/sap/cloud/sdk/cloudplatform/requestheader/RequestHeaderAccessor.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.sap.cloud.sdk.cloudplatform.requestheader;
66

77
import java.util.Map;
8+
import java.util.Objects;
89
import java.util.concurrent.Callable;
910
import java.util.function.Supplier;
1011

@@ -49,11 +50,7 @@ public final class RequestHeaderAccessor
4950
@Beta
5051
public static void setHeaderFacade( @Nullable final RequestHeaderFacade requestHeaderFacade )
5152
{
52-
if( requestHeaderFacade == null ) {
53-
RequestHeaderAccessor.headerFacade = new DefaultRequestHeaderFacade();
54-
} else {
55-
RequestHeaderAccessor.headerFacade = requestHeaderFacade;
56-
}
53+
headerFacade = Objects.requireNonNullElseGet(requestHeaderFacade, DefaultRequestHeaderFacade::new);
5754
}
5855

5956
/**

cloudplatform/cloudplatform-core/src/main/java/com/sap/cloud/sdk/cloudplatform/util/FacadeLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public <FacadeT> Try<FacadeT> getFacade( @Nonnull final Class<FacadeT> facadeInt
119119
@Nonnull
120120
public static MockableInstance getMockableInstance()
121121
{
122-
return FacadeLocator.mockableInstance;
122+
return mockableInstance;
123123
}
124124

125125
/**

cloudplatform/connectivity-apache-httpclient4/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/QueryParamGetter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class QueryParamGetter
2525
{
2626
private static final String URL_QUERIES = "URL.queries.";
2727

28-
private static final char[] SAFE_CHARS_IN_QUERY_VALUES = { '_', '*', '-', ':', ',', '/', '\'', '(', ')', '.', '|' };
29-
30-
private static final Escaper URL_QUERY_ESCAPER = new PercentEscaper(new String(SAFE_CHARS_IN_QUERY_VALUES), false);
28+
private static final Escaper URL_QUERY_ESCAPER = new PercentEscaper("_*-:,/'().|", false);
3129

3230
/**
3331
* Get the headers defined on the destination via properties.

cloudplatform/connectivity-apache-httpclient5/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/QueryParamGetter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class QueryParamGetter
2525
{
2626
private static final String URL_QUERIES = "URL.queries.";
2727

28-
private static final char[] SAFE_CHARS_IN_QUERY_VALUES = { '_', '*', '-', ':', ',', '/', '\'', '(', ')', '.', '|' };
29-
30-
private static final Escaper URL_QUERY_ESCAPER = new PercentEscaper(new String(SAFE_CHARS_IN_QUERY_VALUES), false);
28+
private static final Escaper URL_QUERY_ESCAPER = new PercentEscaper("_*-:,/'().|", false);
3129

3230
/**
3331
* Get the headers defined on the destination via properties.

cloudplatform/connectivity-destination-service/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DestinationServiceRetrievalStrategy.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public String toString()
6969
@Nullable
7070
public static DestinationServiceRetrievalStrategy ofIdentifier( @Nullable final String identifier )
7171
{
72-
return Stream
73-
.of(DestinationServiceRetrievalStrategy.values())
74-
.filter(s -> s.getIdentifier().equalsIgnoreCase(identifier))
75-
.findFirst()
76-
.orElse(null);
72+
return Stream.of(values()).filter(s -> s.getIdentifier().equalsIgnoreCase(identifier)).findFirst().orElse(null);
7773
}
7874
}

cloudplatform/connectivity-destination-service/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DestinationServiceTokenExchangeStrategy.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ public String toString()
8181
@Nullable
8282
static DestinationServiceTokenExchangeStrategy ofIdentifier( @Nullable final String identifier )
8383
{
84-
return Stream
85-
.of(DestinationServiceTokenExchangeStrategy.values())
86-
.filter(s -> s.getIdentifier().equalsIgnoreCase(identifier))
87-
.findFirst()
88-
.orElse(null);
84+
return Stream.of(values()).filter(s -> s.getIdentifier().equalsIgnoreCase(identifier)).findFirst().orElse(null);
8985
}
9086
}

cloudplatform/connectivity-dwc/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DwcConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ private DwcConfiguration()
4141

4242
DwcConfiguration( @Nonnull final Function<String, String> environmentVariableReader )
4343
{
44-
megacliteUrl = Lazy.of(() -> DwcConfiguration.loadMegacliteUri(environmentVariableReader));
45-
providerTenant = Lazy.of(() -> DwcConfiguration.loadProviderTenantId(environmentVariableReader));
44+
megacliteUrl = Lazy.of(() -> loadMegacliteUri(environmentVariableReader));
45+
providerTenant = Lazy.of(() -> loadProviderTenantId(environmentVariableReader));
4646
}
4747

4848
DwcConfiguration( @Nonnull final URI megacliteUrl, @Nonnull final String providerTenant )

0 commit comments

Comments
 (0)