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
|
@Override
|
||||||
public CommandExecutionResult execute(CommandContext context) {
|
public CommandExecutionResult execute(CommandContext context) {
|
||||||
Locale usa = new Locale("en", "US");
|
Locale usa = Locale.US;
|
||||||
NumberFormat dollarFormat = NumberFormat.getCurrencyInstance(usa);
|
NumberFormat dollarFormat = NumberFormat.getCurrencyInstance(usa);
|
||||||
dollarFormat.setMaximumFractionDigits(24);
|
dollarFormat.setMaximumFractionDigits(24);
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ package me.bobert.netneutrality.utils;
|
|||||||
|
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ public class MiscUtils {
|
|||||||
|
|
||||||
public static boolean isValidUrl(String url) {
|
public static boolean isValidUrl(String url) {
|
||||||
try {
|
try {
|
||||||
URL object = new URL(url);
|
URL object = new URI(url).toURL();
|
||||||
object.toURI();
|
object.toURI();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in new issue
Block a user