mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 04:55:10 +00:00
java-20, create uri directly, not via url.
This commit is contained in:
parent
f530bf4d30
commit
5d445ae801
@ -48,7 +48,7 @@ import java.awt.event.MouseListener;
|
||||
import java.awt.event.MouseMotionListener;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.net.URL;
|
||||
import java.net.URI;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import net.sourceforge.plantuml.log.Logme;
|
||||
@ -140,7 +140,7 @@ public class Splash extends Window implements MouseListener, MouseMotionListener
|
||||
public void mouseClicked(MouseEvent event) {
|
||||
if (link != LINK_NORMAL) {
|
||||
try {
|
||||
Desktop.getDesktop().browse(new URL("https://plantuml.com").toURI());
|
||||
Desktop.getDesktop().browse(new URI("https://plantuml.com"));
|
||||
} catch (Exception e) {
|
||||
Logme.error(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user