changeset 672:60fbfe34a757

8065998: Avoid use of _ as a one-character identifier Reviewed-by: alanb, chegar, darcy
author jlahoda
date Tue, 02 Dec 2014 15:11:05 +0100
parents 9443b86c4d04
children 43db13eb1f24
files test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java test/javax/xml/jaxp/unittest/javax/xml/xpath/Bug4991857.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java	Thu Nov 20 10:58:48 2014 -0800
+++ b/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/test/javax/xml/jaxp/unittest/javax/xml/xpath/Bug4991857.java	Thu Nov 20 10:58:48 2014 -0800
+++ b/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");
         }
     }