Skip to content

Commit 6c1296e

Browse files
committed
build: fix checkstyle and some tests
1 parent 0b52373 commit 6c1296e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

handlebars/src/main/java/com/github/jknack/handlebars/helper/StringHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected CharSequence safeApply(final Object value, final Options options) {
103103
* If value is "String with spaces", the output will be "Stringwithspaces".
104104
*/
105105
cut {
106-
@Override public Object apply(Object context, Options options) throws IOException {
106+
@Override public Object apply(final Object context, final Options options) throws IOException {
107107
return safeApply(context, options);
108108
}
109109

handlebars/src/test/java/com/github/jknack/handlebars/helper/StringHelpersTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ public void nullContext() throws IOException {
471471
helpers.remove(StringHelpers.join);
472472
helpers.remove(StringHelpers.yesno);
473473
helpers.remove(StringHelpers.defaultIfEmpty);
474+
helpers.remove(cut);
474475

475476
Options options = mock(Options.class);
476477
when(options.isFalsy(any())).thenReturn(true);
@@ -490,6 +491,7 @@ public void nullContextWithDefault() throws IOException {
490491
helpers.remove(StringHelpers.join);
491492
helpers.remove(StringHelpers.yesno);
492493
helpers.remove(StringHelpers.defaultIfEmpty);
494+
helpers.remove(cut);
493495

494496
String nothing = "nothing";
495497
Options options = mock(Options.class);
@@ -510,6 +512,7 @@ public void nullContextWithNumber() throws IOException {
510512
helpers.remove(StringHelpers.join);
511513
helpers.remove(StringHelpers.yesno);
512514
helpers.remove(StringHelpers.defaultIfEmpty);
515+
helpers.remove(cut);
513516

514517
Object number = 32;
515518
Options options = mock(Options.class);

0 commit comments

Comments
 (0)