Skip to content

Commit

Permalink
simplified text container build
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhead committed Sep 10, 2016
1 parent f935d4a commit 994c2ec
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ public Builder withProps(final Map<String, TextContainer> props) {
}

public TextContainer build() {
TextContainer container = new TextContainer();
container.text = text;
container.operation = operation;
container.props = asProps(props);
return container;
return new TextContainer(text, operation, asProps(props));
}

private Map<String, TextContainer> asProps(final Map<String, TextContainer> props) {
Expand Down

0 comments on commit 994c2ec

Please sign in to comment.