add typing to context handler mbean and remove import from xmlconfiguration
This commit is contained in:
parent
279f24faaa
commit
9f4375d1e5
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue