Skip to content

Commit

Permalink
fix: remove deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Oct 25, 2024
1 parent 66a1a83 commit be374bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/bee/api/VCS.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
Expand Down Expand Up @@ -155,7 +156,7 @@ public static VCS of(String uri) {
}

try {
URL u = new URL(uri.replaceAll("\\.git$", ""));
URL u = URI.create(uri.replaceAll("\\.git$", "")).toURL();

switch (u.getHost()) {
case "github.com":
Expand Down

0 comments on commit be374bb

Please sign in to comment.