Skip to content

Commit

Permalink
Merge pull request #63 from platan/dependabot/gradle/pl.allegro.tech.…
Browse files Browse the repository at this point in the history
…boot-handlebars-spring-boot-starter-0.4.1

Bump pl.allegro.tech.boot:handlebars-spring-boot-starter from 0.3.4 to 0.4.1
  • Loading branch information
platan committed Oct 20, 2023
2 parents 32f419f + f086952 commit 7a2552d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sourceCompatibility = 1.8

dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'pl.allegro.tech.boot:handlebars-spring-boot-starter:0.3.4'
compile 'pl.allegro.tech.boot:handlebars-spring-boot-starter:0.4.1'

testCompile 'org.springframework.boot:spring-boot-starter-test'
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/hello/helpers/HelloHelper.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package hello.helpers;

import com.google.common.base.Objects;
import pl.allegro.tech.boot.autoconfigure.handlebars.HandlebarsHelper;

@HandlebarsHelper
public class HelloHelper {

public String sayHello(String name) {
return String.format("Hello %s!", Objects.firstNonNull(name, "unknown"));
return String.format("Hello %s!", name == null ? "unknown" : name);
}
}

0 comments on commit 7a2552d

Please sign in to comment.