Ignore:
Timestamp:
2016-02-14T20:49:43+01:00 (8 years ago)
Author:
stoecker
Message:

fix Coverity issues 1349911, 1349912, 1349913, 1349917, 1349918, 1349919, 1349922, 1349923

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r9078 r9799  
    289289    public Iterable<Object> startWithValidation(final Reader in, String namespace, String schemaSource) throws SAXException {
    290290        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    291         try (InputStream mis = new CachedFile(schemaSource).getInputStream()) {
     291        try (CachedFile cf = new CachedFile(schemaSource); InputStream mis = cf.getInputStream()) {
    292292            Schema schema = factory.newSchema(new StreamSource(mis));
    293293            ValidatorHandler validator = schema.newValidatorHandler();
Note: See TracChangeset for help on using the changeset viewer.