MCPcopy Create free account
hub / github.com/Java-Discord/JavaBot / checkUrl

Method checkUrl

src/main/java/net/discordjug/javabot/util/Checks.java:84–90  ·  view source on GitHub ↗

Checks if the specified string url is a valid URL. @param url The provided URL. @return Whether the specified url is a valid URL.

(String url)

Source from the content-addressed store, hash-verified

82 * @return Whether the specified url is a valid {@link URL}.
83 */
84 public static boolean checkUrl(String url) {
85 try {
86 return new URL(url) != null;
87 } catch (IOException e) {
88 return false;
89 }
90 }
91
92 /**
93 * Checks if the specified string is a valid {@link java.awt.Color}.

Callers 2

handleAuthorModalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected