Skip to content

Commit

Permalink
Use generics and entrySet().
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Sicker committed Dec 4, 2015
1 parent 3a332f9 commit e4befac
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,11 @@ public boolean isFatalEnabled()

private void setDelegateContext()
{
Map context = getPaxContext().getContext();
Map<String, Object> context = getPaxContext().getContext();
if( context != null )
{
for (Object o : context.keySet()) {
String key = (String) o;
Object value = context.get(key);
put(key, value);
for (Map.Entry<String, Object> entry : context.entrySet()) {
put(entry.getKey(), entry.getValue());
}
}
if (m_bundle != null)
Expand Down

0 comments on commit e4befac

Please sign in to comment.