From 3d573827230e7a750c002cf416cf9231161dd9b3 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Tue, 19 Apr 2022 13:11:38 +0300 Subject: Update Jsoup to 1.14.3 (#2448) * Update Jsoup to 1.14.3 * Fix Jsoup API breaking changes after the update * Fix new Qodana inspections * Replace IllegalStateException with more appropriate NoSuchElementException --- .../src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integration-tests') diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt index c5ea0093..adc75f43 100644 --- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt +++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt @@ -61,7 +61,7 @@ abstract class AbstractIntegrationTest { val fileText = file.readText() val html = Jsoup.parse(fileText) html.allElements.toList().forEach { element -> - val href = (element.attr("href") ?: return@forEach) + val href = element.attr("href") if (href.startsWith("https")) return@forEach if (href.startsWith("http")) return@forEach -- cgit