Skip to content

Commit

Permalink
Note that CollectionBuilder.add() should check for duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
bpsm committed Dec 10, 2016
1 parent 7db1728 commit 882790c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/us/bpsm/edn/parser/CollectionBuilder.java
Expand Up @@ -14,6 +14,11 @@ public interface CollectionBuilder {
* pairs of the map have been added.
* <p>
* For other collections is can be called any number of times.
* <p>
* Implementations which construct Maps or Sets an should throw an
* EdnSyntaxException if they detect a duplicate key (in the case of
* a map) or a duplicate element (in the case of a set).
* </p>
*
* <p>{@code add()} may not be called after {@code build()}.
* @param o an object to add to the collection under construction. o may
Expand Down

0 comments on commit 882790c

Please sign in to comment.