We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca09671 commit 40ae4d1Copy full SHA for 40ae4d1
shared/src/main/kotlin/org/javacs/kt/classpath/CachedClassPathResolver.kt
@@ -60,7 +60,7 @@ internal class CachedClassPathResolver(
60
ClassPathCacheEntryEntity.all().map {
61
ClassPathEntry(
62
compiledJar = Paths.get(it.compiledJar),
63
- sourceJar = if (it.sourceJar != null) Paths.get(it.sourceJar) else null
+ sourceJar = it.sourceJar?.let(Paths::get)
64
)
65
}.toSet()
66
}
@@ -69,7 +69,7 @@ internal class CachedClassPathResolver(
69
newEntries.map {
70
ClassPathCacheEntryEntity.new {
71
compiledJar = it.compiledJar.toString()
72
- sourceJar = it.sourceJar.toString()
+ sourceJar = it.sourceJar?.toString()
73
74
75
0 commit comments