File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ abstract class BaseTransformerTest<T : Transformer> {
6666 * choice to test for improper case-less string comparisons.
6767 */
6868 fun setupTurkishLocale () {
69+ @Suppress(" DEPRECATION" )
6970 Locale .setDefault(Locale (" tr" ))
7071 }
7172 }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import assertk.assertions.isTrue
66import com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator
77import com.github.jengelman.gradle.plugins.shadow.util.SimpleRelocator
88import java.io.File
9- import java.net.URL
9+ import java.net.URI
1010import java.util.Collections
1111import org.apache.logging.log4j.core.config.plugins.processor.PluginCache
1212import org.apache.tools.zip.ZipOutputStream
@@ -40,7 +40,7 @@ class Log4j2PluginsCacheFileTransformerTest : BaseTransformerTest<Log4j2PluginsC
4040 // Pull the data back out and make sure it was transformed
4141 val cache = PluginCache ()
4242 val urlString = " jar:" + testableZipFile.toURI().toURL() + " !/" + PLUGIN_CACHE_FILE
43- cache.loadCacheFiles(Collections .enumeration(listOf (URL (urlString))))
43+ cache.loadCacheFiles(Collections .enumeration(listOf (URI (urlString).toURL( ))))
4444
4545 assertThat(cache.getCategory(" lookup" )[" date" ]?.className)
4646 .isEqualTo(" new.location.org.apache.logging.log4j.core.lookup.DateLookup" )
You can’t perform that action at this time.
0 commit comments