Skip to content

Commit 854582b

Browse files
authored
Merge pull request #453 from codacy/TS-261-compatible-with-java-17-grt
Change SAXParserFactory to a one compatible with java 17 and greater
2 parents fddc44e + 3b17a3e commit 854582b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coverage-parser/src/main/scala/com/codacy/parsers/util/XMLoader.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package com.codacy.parsers.util
22

33
import scala.xml.factory.XMLLoader
4+
import javax.xml.parsers.SAXParserFactory
45
import scala.xml.{Elem, SAXParser}
56

67
object XMLoader extends XMLLoader[Elem] {
78

89
override def parser: SAXParser = {
9-
val f = new com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
10+
val f = SAXParserFactory.newInstance()
1011
f.setNamespaceAware(false)
1112
f.setValidating(false)
1213
f.setFeature("http://xml.org/sax/features/namespaces", false)

0 commit comments

Comments
 (0)