Skip to content

Commit

Permalink
Remove incorrect comment on SAXParserFactory (#9102)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsargent authored and mergify[bot] committed Mar 18, 2019
1 parent a7e0b7f commit d84626b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/play/src/main/scala/play/api/Play.scala
Expand Up @@ -55,12 +55,6 @@ object Play {

private[play] val GlobalAppConfigKey = "play.allowGlobalApplication"

/*
* We want control over the sax parser used so we specify the factory required explicitly. We know that
* SAXParserFactoryImpl will yield a SAXParser having looked at its source code, despite there being
* no explicit doco stating this is the case. That said, there does not appear to be any other way than
* declaring a factory in order to yield a parser of a specific type.
*/
private[play] val xercesSaxParserFactory = SAXParserFactory.newInstance()
xercesSaxParserFactory.setFeature(Constants.SAX_FEATURE_PREFIX + Constants.EXTERNAL_GENERAL_ENTITIES_FEATURE, false)
xercesSaxParserFactory.setFeature(Constants.SAX_FEATURE_PREFIX + Constants.EXTERNAL_PARAMETER_ENTITIES_FEATURE, false)
Expand Down

0 comments on commit d84626b

Please sign in to comment.