Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/AbstractReader.java
r14087 r14099 272 272 @FunctionalInterface 273 273 protected interface ParserWorker { 274 void accept(InputStreamReader ir) throws IllegalDataException, IOException; 274 /** 275 * Effectively parses the file, depending on the format (XML, JSON, etc.) 276 * @param ir input stream reader 277 * @throws IllegalDataException in case of invalid data 278 * @throws IOException in case of I/O error 279 */ 280 void accept(InputStreamReader ir) throws IllegalDataException, IOException; 275 281 } 276 282 … … 550 556 @FunctionalInterface 551 557 protected interface CommonReader { 552 void accept(PrimitiveData pd) throws IllegalDataException; 558 /** 559 * Reads the common primitive attributes and sets them in {@code pd} 560 * @param pd primitive data to update 561 * @throws IllegalDataException in case of invalid data 562 */ 563 void accept(PrimitiveData pd) throws IllegalDataException; 553 564 } 554 565 555 566 @FunctionalInterface 556 567 protected interface NodeReader { 557 void accept(Node n) throws IllegalDataException; 568 /** 569 * Reads the node tags. 570 * @param n node 571 * @throws IllegalDataException in case of invalid data 572 */ 573 void accept(Node n) throws IllegalDataException; 558 574 } 559 575 560 576 @FunctionalInterface 561 577 protected interface WayReader { 562 void accept(Way w, Collection<Long> nodeIds) throws IllegalDataException; 578 /** 579 * Reads the way nodes and tags. 580 * @param w way 581 * @param nodeIds collection of resulting node ids 582 * @throws IllegalDataException in case of invalid data 583 */ 584 void accept(Way w, Collection<Long> nodeIds) throws IllegalDataException; 563 585 } 564 586 565 587 @FunctionalInterface 566 588 protected interface RelationReader { 567 void accept(Relation r, Collection<RelationMemberData> members) throws IllegalDataException; 589 /** 590 * Reads the relation members and tags. 591 * @param r relation 592 * @param members collection of resulting members 593 * @throws IllegalDataException in case of invalid data 594 */ 595 void accept(Relation r, Collection<RelationMemberData> members) throws IllegalDataException; 568 596 } 569 597 -
trunk/src/org/openstreetmap/josm/io/OsmJsonReader.java
r14086 r14099 121 121 } 122 122 123 private void readTags(JsonObject item, Tagged t) { 123 private static void readTags(JsonObject item, Tagged t) { 124 124 JsonObject tags = item.getJsonObject("tags"); 125 125 if (tags != null) { -
trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTestIT.java
r14089 r14099 87 87 } catch (SSLHandshakeException e) { 88 88 if (shouldWork) { 89 e.printStackTrace(); 90 Assert.fail("Untrusted: " + url); 89 throw new IOException("Untrusted: " + url, e); 91 90 } else { 92 91 return;
Note:
See TracChangeset
for help on using the changeset viewer.