Changeset 9798 in josm
- Timestamp:
- 2016-02-14T20:33:49+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9793 r9798 243 243 public long generateTime; 244 244 public long sortTime; 245 public long drawTime;246 245 public Map<Class<? extends StyleElement>, Integer> styleElementCount; 247 246 public boolean skipDraw; … … 1961 1960 timeFinished = System.currentTimeMillis(); 1962 1961 if (benchmarkData != null) { 1963 benchmarkData.drawTime = timeFinished - timeGenerateDone;1964 1962 benchmarkData.recordElementStats(allStyleElems); 1965 1963 } -
trunk/src/org/openstreetmap/josm/data/preferences/PreferencesReader.java
r9783 r9798 61 61 */ 62 62 public static void validateXML(Reader in) throws IOException, SAXException { 63 try ( InputStream xsdStream = new CachedFile("resource://data/preferences.xsd").getInputStream()) {63 try (CachedFile cf = new CachedFile("resource://data/preferences.xsd"); InputStream xsdStream = cf.getInputStream()) { 64 64 Schema schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(xsdStream)); 65 65 Validator validator = schema.newValidator();
Note:
See TracChangeset
for help on using the changeset viewer.