Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Code improvement after code review to avoid possible future bugs
  • Loading branch information
Javier Gómez committed Aug 19, 2016
1 parent 2b63922 commit 847e8a2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -218,8 +218,8 @@ public Response invalidatesCacheByTenant(@QueryParam("tenantApiKey") final Strin
} }


private void removeCacheByKey(final Ehcache tenantCache, final String tenantRecordId) { private void removeCacheByKey(final Ehcache tenantCache, final String tenantRecordId) {
for (String key : (List<String>) tenantCache.getKeys()) { for (Object key : tenantCache.getKeys()) {
if (key.endsWith("::" + tenantRecordId)) { if (null != key && key.toString().endsWith("::" + tenantRecordId)) {
tenantCache.remove(key); tenantCache.remove(key);
} }
} }
Expand Down

0 comments on commit 847e8a2

Please sign in to comment.