Skip to content

Commit

Permalink
✨ 开始 3.1.5-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Oct 8, 2023
1 parent 59164eb commit 3b1e7fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.*;
import java.net.URI;
import java.net.URL;

/**
Expand Down Expand Up @@ -76,7 +77,7 @@ public static BufferedImage read(String url) {
*/
private static BufferedImage readUrl(String url) {
try {
return ImageIO.read(new URL(url));
return ImageIO.read(URI.create(url).toURL());
} catch (IOException e) {
throw Exceptions.unchecked(e);
}
Expand Down

0 comments on commit 3b1e7fc

Please sign in to comment.