Skip to content

VolumeContentBuilder allows invalid sequences of operation #23

Description

@GoogleCodeExporter
The VolumeContentBuilder currently allows invalid sequences of operation, such 
as
newSequence(null);
newOnTocStart();

Doing so could throw an IllegalStateException, but it is really up to the 
implementation to do so. This causes unnecessary uncertainty which can be 
avoided by moving the state dependent methods to separate interfaces. E.g. 
newSequence(null) could return a FormatterCore for that sequence.

And newTocSequence(null) could return another interface containing the methods 
needed e.g. newOnTocStart() (which in turn could return FormatterCore);

Original issue reported on code.google.com by joel.hak...@mtm.se on 21 May 2014 at 7:07

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions