Skip to content

Commit

Permalink
fix casing in equals check
Browse files Browse the repository at this point in the history
Conflicts:
	spring-security/src/main/java/com/sap/cloud/security/spring/autoconfig/HybridIdentityServicesAutoConfiguration.java
  • Loading branch information
finkmanAtSap authored and clnative committed Nov 7, 2023
1 parent c9ef1a7 commit a726d00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public JwtDecoder hybridJwtDecoderMultiXsuaaServices(IdentityServiceConfiguratio
configurations instead of only two. */
List<XsuaaServiceConfiguration> allXsuaaConfigs = xsuaaConfigs.getConfigurations();
List<XsuaaServiceConfiguration> usedXsuaaConfigs = allXsuaaConfigs.subList(0, Math.min(2, allXsuaaConfigs.size()));
if (usedXsuaaConfigs.size() == 2 && !ServiceConstants.Plan.BROKER.name().equals(usedXsuaaConfigs.get(1).getProperty(ServiceConstants.SERVICE_PLAN))) {
if (usedXsuaaConfigs.size() == 2 && !ServiceConstants.Plan.BROKER.toString().equals(usedXsuaaConfigs.get(1).getProperty(ServiceConstants.SERVICE_PLAN))) {
usedXsuaaConfigs = usedXsuaaConfigs.subList(0, 1);
}

Expand Down

0 comments on commit a726d00

Please sign in to comment.