Skip to content

Commit

Permalink
build: fix broken type of map for the javadoc.io cache (#4035)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK authored Dec 19, 2024
1 parent dfd485a commit 871def0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions buildSrc/src/main/kotlin/Util.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import org.gradle.plugin.use.PluginDependency
import java.io.ByteArrayOutputStream
import java.io.File
import java.net.URI
import java.net.URL

/**
* Collector of imperative code.
Expand All @@ -48,7 +47,7 @@ object Util {

private val javadocIOcacheFile = File("javadoc-io.json")
private val gson = Gson().newBuilder().setPrettyPrinting().create()
private val mapType = object : TypeToken<MutableMap<String, Pair<URL, URL?>>>() { }.type
private val mapType = object : TypeToken<MutableMap<String, Pair<URI, URI?>>>() { }.type

private val javadocIO: MutableMap<String, Pair<URI, URI?>> = javadocIOcacheFile
.takeIf(File::exists)
Expand Down

0 comments on commit 871def0

Please sign in to comment.