8065998: Avoid use of _ as a one-character identifier
authorjlahoda
Tue, 02 Dec 2014 15:11:05 +0100
changeset 27832 f809e58bb6be
parent 27831 826464cf804b
child 27833 4d13a8a11a8b
8065998: Avoid use of _ as a one-character identifier Reviewed-by: alanb, chegar, darcy
jaxp/test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java
jaxp/test/javax/xml/jaxp/unittest/javax/xml/xpath/Bug4991857.java
--- 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");
         }
     }