Needlessly required JDK1.2 collections API (add/get);
replaced with JDK1.1-and-up equivalents. (addElement/elementAt) git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
f13681688c
commit
38a2b89e48
1 file changed
+2
-2
@@ -565,7 +565,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
} catch (SAXException e) {
|
||||
if (exceptions == null)
|
||||
exceptions = new Vector();
|
||||
exceptions.add(e);
|
||||
exceptions.addElement(e);
|
||||
atts.addAttribute("", attQName, attQName, type, value);
|
||||
}
|
||||
}
|
||||
@@ -588,7 +588,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
|
||||
}
|
||||
} else if (exceptions != null && errorHandler != null) {
|
||||
for (int i = 0; i < exceptions.size(); i++)
|
||||
errorHandler.error((SAXParseException)(exceptions.get(i)));
|
||||
errorHandler.error((SAXParseException)(exceptions.elementAt(i)));
|
||||
}
|
||||
|
||||
// OK, finally report the event.
|
||||
|
||||
Reference in new issue
Block a user