Changeset 9664 in josm for trunk/src/org
- Timestamp:
- 2016-01-28T22:19:39+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r9620 r9664 268 268 private Collection<Layer> getCapabilities() throws IOException { 269 269 XMLInputFactory factory = XMLInputFactory.newFactory(); 270 // do not try to load external entities, nor validate the XML 271 factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false); 272 factory.setProperty(XMLInputFactory.IS_VALIDATING, false); 273 factory.setProperty(XMLInputFactory.SUPPORT_DTD, false); 274 270 275 InputStream in = new CachedFile(baseUrl). 271 276 setHttpHeaders(headers). … … 280 285 XMLStreamReader reader = factory.createXMLStreamReader(new ByteArrayInputStream(data)); 281 286 282 Collection<Layer> ret = n ull;287 Collection<Layer> ret = new ArrayList<>(); 283 288 for (int event = reader.getEventType(); reader.hasNext(); event = reader.next()) { 284 289 if (event == XMLStreamReader.START_ELEMENT) {
Note:
See TracChangeset
for help on using the changeset viewer.