8065998: Avoid use of _ as a one-character identifier

Reviewed-by: alanb, chegar, darcy
This commit is contained in:
Jan Lahoda 2014-12-02 15:11:05 +01:00
parent 4eb3839dcc
commit 43f018317f
2 changed files with 3 additions and 3 deletions

View File

@ -52,11 +52,11 @@ public class Bug4969089 {
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;
}
};

View File

@ -50,7 +50,7 @@ public class Bug4991857 {
Assert.assertNotNull(xpath);
Double result = (Double) xpath.evaluate("1+2", d, XPathConstants.NUMBER);
} catch (XPathExpressionException _) {
} catch (XPathExpressionException unused) {
Assert.fail("Unexpected XPathExpressionException thrown");
}
}