Changeset 10741 in josm for trunk/src/com


Ignore:
Timestamp:
2016-08-06T00:00:24+02:00 (3 years ago)
Author:
Don-vip
Message:

see #11924 - XMLReaderFactory has been deprecated in Java 9, see https://bugs.openjdk.java.net/browse/JDK-8152912

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/SVGUniverse.java

    r8149 r10741  
    6363import javax.imageio.ImageIO;
    6464import javax.xml.bind.DatatypeConverter;
     65import javax.xml.parsers.ParserConfigurationException;
     66import javax.xml.parsers.SAXParserFactory;
    6567import org.xml.sax.EntityResolver;
    6668import org.xml.sax.InputSource;
     
    6870import org.xml.sax.SAXParseException;
    6971import org.xml.sax.XMLReader;
    70 import org.xml.sax.helpers.XMLReaderFactory;
    7172
    7273/**
     
    574575    }
    575576
    576     private XMLReader getXMLReaderCached() throws SAXException
     577    private XMLReader getXMLReaderCached() throws SAXException, ParserConfigurationException
    577578    {
    578579        if (cachedReader == null)
    579580        {
    580             cachedReader = XMLReaderFactory.createXMLReader();
     581            SAXParserFactory factory = SAXParserFactory.newInstance();
     582            factory.setNamespaceAware(true);
     583            cachedReader = factory.newSAXParser().getXMLReader();
    581584        }
    582585        return cachedReader;
Note: See TracChangeset for help on using the changeset viewer.