Skip to content

Commit

Permalink
payment: fix unnecessary cast in EhCacheStateMachineConfigCache
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
  • Loading branch information
pierre committed Mar 27, 2017
1 parent 6d72295 commit b049d21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public StateMachineConfig getPaymentStateMachineConfig(final String pluginName,
final String pluginConfigKey = getCacheKeyName(pluginName, tenantContext);
final CacheLoaderArgument cacheLoaderArgument = createCacheLoaderArgument(pluginName);
try {
StateMachineConfig pluginPaymentStateMachineConfig = (StateMachineConfig) cacheController.get(pluginConfigKey, cacheLoaderArgument);
StateMachineConfig pluginPaymentStateMachineConfig = cacheController.get(pluginConfigKey, cacheLoaderArgument);
// It means we are using the default state machine config in a multi-tenant deployment
if (pluginPaymentStateMachineConfig == null) {
pluginPaymentStateMachineConfig = defaultPaymentStateMachineConfig;
Expand Down

1 comment on commit b049d21

@sbrossie
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.