Skip to content

Commit

Permalink
Add a default constructor to StyleExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jun 15, 2017
1 parent a46b004 commit e9d712f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions style/src/main/java/org/jline/style/StyleExpression.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class StyleExpression {

private final StyleResolver resolver;

public StyleExpression() {
this(new StyleResolver(new NopStyleSource(), ""));
}

public StyleExpression(final StyleResolver resolver) {
this.resolver = requireNonNull(resolver);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StyleExpressionTest
@Before
void setUp() {
super.setUp()
this.underTest = new StyleExpression(new StyleResolver(source, 'test'))
this.underTest = new StyleExpression()
}

@Test
Expand Down

0 comments on commit e9d712f

Please sign in to comment.