Skip to content

Commit

Permalink
Added volatile word to the cache manager
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-kumaryadav committed Nov 4, 2020
1 parent a5347f5 commit ee00f16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class CategoryCacheManager {

// Singleton Instance
private static CategoryCacheManager cacheManager;
private static volatile CategoryCacheManager cacheManager;

// Map to store the Category details
private Map<Integer, String> categoryMap = null;
Expand Down

0 comments on commit ee00f16

Please sign in to comment.