Skip to content

Commit

Permalink
Merge pull request #483 from danielsoro/static-final-pattern
Browse files Browse the repository at this point in the history
Altered declaration name of the static final variable.
  • Loading branch information
lincolnthree committed Jul 3, 2014
2 parents af12005 + 17b8692 commit c40e448
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@

public class EnvironmentImpl implements Environment, Service
{
private static final Map<String, Map<Object, Object>> categorizedMap =
private static final Map<String, Map<Object, Object>> CATEGORIZED_MAP =
Collections.synchronizedMap(
new HashMap<String, Map<Object, Object>>());

@SuppressWarnings("unchecked")
@Override
public <K, V> Map<K, V> get(Class<? extends Category> key)
{
Map<Object, Object> map = categorizedMap.get(key.getName());
Map<Object, Object> map = CATEGORIZED_MAP.get(key.getName());
if (map == null)
{
map = new ConcurrentHashMap<Object, Object>();
categorizedMap.put(key.getName(), map);
CATEGORIZED_MAP.put(key.getName(), map);
}
return (Map<K, V>) map;
}
Expand Down

0 comments on commit c40e448

Please sign in to comment.