deprecated api
This commit is contained in:
1 parent
bceab4b2b9
commit
6abda9196b
2 files changed
+3
-2
No files matched your search
@@ -70,7 +70,7 @@ public class CryptoPriceCommand extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public CommandExecutionResult execute(CommandContext context) {
|
||||
Locale usa = new Locale("en", "US");
|
||||
Locale usa = Locale.US;
|
||||
NumberFormat dollarFormat = NumberFormat.getCurrencyInstance(usa);
|
||||
dollarFormat.setMaximumFractionDigits(24);
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ package me.bobert.netneutrality.utils;
|
||||
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
|
||||
@@ -14,7 +15,7 @@ public class MiscUtils {
|
||||
|
||||
public static boolean isValidUrl(String url) {
|
||||
try {
|
||||
URL object = new URL(url);
|
||||
URL object = new URI(url).toURL();
|
||||
object.toURI();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user