adding generic <Object> to avoid some warnings

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@555873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-07-13 04:52:22 +00:00
parent 0943302b91
commit 4bd34517da
1 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ public class DOMUtil {
// response schema. // response schema.
// Should these be moved to Config? Should all of these things? // Should these be moved to Config? Should all of these things?
////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////
public static NamedList childNodesToNamedList(Node nd) { public static NamedList<Object> childNodesToNamedList(Node nd) {
return nodesToNamedList(nd.getChildNodes()); return nodesToNamedList(nd.getChildNodes());
} }
@ -96,8 +96,8 @@ public class DOMUtil {
return nodesToList(nd.getChildNodes()); return nodesToList(nd.getChildNodes());
} }
public static NamedList nodesToNamedList(NodeList nlst) { public static NamedList<Object> nodesToNamedList(NodeList nlst) {
NamedList clst = new NamedList(); NamedList<Object> clst = new NamedList<Object>();
for (int i=0; i<nlst.getLength(); i++) { for (int i=0; i<nlst.getLength(); i++) {
addToNamedList(nlst.item(i), clst, null); addToNamedList(nlst.item(i), clst, null);
} }