add typing to context handler mbean and remove import from xmlconfiguration

This commit is contained in:
Jesse McConnell 2012-08-13 07:10:07 -05:00
parent 279f24faaa
commit 9f4375d1e5
2 changed files with 3 additions and 4 deletions

View File

@ -31,11 +31,11 @@ public class ContextHandlerMBean extends AbstractHandlerMBean
}
@ManagedAttribute("Map of context attributes")
public Map getContextAttributes()
public Map<String,Object> getContextAttributes()
{
Map map = new HashMap();
Map<String,Object> map = new HashMap<String,Object>();
Attributes attrs = ((ContextHandler)_managed).getAttributes();
Enumeration en = attrs.getAttributeNames();
Enumeration<String> en = attrs.getAttributeNames();
while (en.hasMoreElements())
{
String name = (String)en.nextElement();

View File

@ -50,7 +50,6 @@ import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.xml.XmlParser.Node;
import org.junit.Assert;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;