From d84626b591637ed7056e83419f2d49b06d9056cf Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Mon, 18 Mar 2019 10:47:13 -0700 Subject: [PATCH] Remove incorrect comment on SAXParserFactory (#9102) --- core/play/src/main/scala/play/api/Play.scala | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/play/src/main/scala/play/api/Play.scala b/core/play/src/main/scala/play/api/Play.scala index 1f6dfa2703e..838a80472b2 100644 --- a/core/play/src/main/scala/play/api/Play.scala +++ b/core/play/src/main/scala/play/api/Play.scala @@ -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)