From a908dc9cc08fc0a2b0a1d7d9ff895cfdc1514958 Mon Sep 17 00:00:00 2001 From: Jonathan Hedley Date: Fri, 3 Jan 2025 09:42:26 +1100 Subject: [PATCH] Clean up varargs compilation warning --- src/main/java/org/jsoup/examples/Wikipedia.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jsoup/examples/Wikipedia.java b/src/main/java/org/jsoup/examples/Wikipedia.java index c4aa998764..334ec1f37a 100644 --- a/src/main/java/org/jsoup/examples/Wikipedia.java +++ b/src/main/java/org/jsoup/examples/Wikipedia.java @@ -25,6 +25,6 @@ public static void main(String[] args) throws IOException { } private static void log(String msg, String... vals) { - System.out.println(String.format(msg, vals)); + System.out.println(String.format(msg, (Object[]) vals)); } }