Skip to content

Commit

Permalink
Add JSR-305 JAR needed until KT-19419 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Aug 2, 2017
1 parent 74e2b3f commit 2d6ac07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ tasks {

compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.0")

compile("com.google.code.findbugs:jsr305:3.0.2") // Needed for now, could be removed when KT-19419 will be fixed

testCompile("io.projectreactor:reactor-test:3.1.0.M3")

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/functional/web/view/MustacheView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class MustacheView : AbstractUrlBasedView() {

private fun resolveResource(): Resource? {
val resource = applicationContext!!.getResource(url!!)
if (resource == null || !resource.exists()) {
if (!resource.exists()) {
return null
}
return resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MustacheViewResolver(private val compiler: Compiler = Mustache.compiler())
return MustacheView::class.java
}

override fun createView(viewName: String?): AbstractUrlBasedView {
override fun createView(viewName: String): AbstractUrlBasedView {
val view = super.createView(viewName) as MustacheView
view.setCompiler(this.compiler)
this.charset?.let { view.setCharset(it) }
Expand Down

0 comments on commit 2d6ac07

Please sign in to comment.