8065998: Avoid use of _ as a one-character identifier
Reviewed-by: alanb, chegar, darcy
--- a/jaxp/test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java Thu Nov 20 10:58:48 2014 -0800
+++ b/jaxp/test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java Tue Dec 02 15:11:05 2014 +0100
@@ -52,11 +52,11 @@
StringReader reader = new StringReader(xsd1);
StreamSource source = new StreamSource(reader);
DefaultHandler errorHandler = new DefaultHandler() {
- public void fatalError(SAXParseException _) throws SAXException {
+ public void fatalError(SAXParseException unused) throws SAXException {
throw EUREKA;
}
- public void error(SAXParseException _) throws SAXException {
+ public void error(SAXParseException unused) throws SAXException {
throw EUREKA;
}
};
--- a/jaxp/test/javax/xml/jaxp/unittest/javax/xml/xpath/Bug4991857.java Thu Nov 20 10:58:48 2014 -0800
+++ b/jaxp/test/javax/xml/jaxp/unittest/javax/xml/xpath/Bug4991857.java Tue Dec 02 15:11:05 2014 +0100
@@ -50,7 +50,7 @@
Assert.assertNotNull(xpath);
Double result = (Double) xpath.evaluate("1+2", d, XPathConstants.NUMBER);
- } catch (XPathExpressionException _) {
+ } catch (XPathExpressionException unused) {
Assert.fail("Unexpected XPathExpressionException thrown");
}
}