Skip to content

Commit

Permalink
Issue #10066 - rename to `.getSAXParser()
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime committed Jul 5, 2023
1 parent 1db3f0d commit a1b8585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public boolean isValidating()
return _parser.isValidating();
}

public SAXParser getParser()
public SAXParser getSAXParser()
{
return _parser;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@

import java.net.URL;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.junit.jupiter.api.Test;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.XMLReader;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand Down Expand Up @@ -66,7 +62,7 @@ protected SAXParserFactory newSAXParserFactory()
}
};

SAXParser saxParser = xmlParser.getParser();
SAXParser saxParser = xmlParser.getSAXParser();
assertNotNull(saxParser);
// look to see it was set at parser level
assertFalse(saxParser.isNamespaceAware());
Expand Down

0 comments on commit a1b8585

Please sign in to comment.