Small fix

This commit is contained in:
M66B 2022-12-30 12:38:31 +01:00
parent ff0cca4c4a
commit ac66b564f2
4 changed files with 8 additions and 10 deletions

View File

@ -21,8 +21,6 @@ package eu.faircode.email;
import android.content.Context; import android.content.Context;
import org.apache.poi.ss.formula.eval.NotImplementedException;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
public class Avatar { public class Avatar {
@ -33,7 +31,7 @@ public class Avatar {
return new Callable<ContactInfo.Favicon>() { return new Callable<ContactInfo.Favicon>() {
@Override @Override
public ContactInfo.Favicon call() throws Exception { public ContactInfo.Favicon call() throws Exception {
throw new NotImplementedException("Gravatar"); throw new IllegalArgumentException("Gravatar");
} }
}; };
} }
@ -42,7 +40,7 @@ public class Avatar {
return new Callable<ContactInfo.Favicon>() { return new Callable<ContactInfo.Favicon>() {
@Override @Override
public ContactInfo.Favicon call() throws Exception { public ContactInfo.Favicon call() throws Exception {
throw new NotImplementedException("Libravatar"); throw new IllegalArgumentException("Libravatar");
} }
}; };
} }

View File

@ -29,6 +29,6 @@ public class Bimi {
static Pair<Bitmap, Boolean> get( static Pair<Bitmap, Boolean> get(
Context context, String _domain, String selector, int scaleToPixels) Context context, String _domain, String selector, int scaleToPixels)
throws IOException { throws IOException {
throw new NotImplementedException("BIMI"); throw new IllegalArgumentException("BIMI");
} }
} }

View File

@ -29,7 +29,7 @@ public class Send {
static final String DEFAULT_SERVER = ""; static final String DEFAULT_SERVER = "";
public static String upload(InputStream is, DocumentFile dfile, int dLimit, int timeLimit, String host, IProgress intf) { public static String upload(InputStream is, DocumentFile dfile, int dLimit, int timeLimit, String host, IProgress intf) {
throw new NotImplementedException("Send"); throw new IllegalArgumentException("Send");
} }
public interface IProgress { public interface IProgress {

View File

@ -32,19 +32,19 @@ public class VirusTotal {
static final String URI_PRIVACY = ""; static final String URI_PRIVACY = "";
static String getUrl(File file) { static String getUrl(File file) {
throw new NotImplementedException("VirusTotal"); throw new IllegalArgumentException("VirusTotal");
} }
static Bundle lookup(Context context, File file, String apiKey) { static Bundle lookup(Context context, File file, String apiKey) {
throw new NotImplementedException("VirusTotal"); throw new IllegalArgumentException("VirusTotal");
} }
static String upload(Context context, File file, String apiKey) { static String upload(Context context, File file, String apiKey) {
throw new NotImplementedException("VirusTotal"); throw new IllegalArgumentException("VirusTotal");
} }
static void waitForAnalysis(Context context, String id, String apiKey) { static void waitForAnalysis(Context context, String id, String apiKey) {
throw new NotImplementedException("VirusTotal"); throw new IllegalArgumentException("VirusTotal");
} }
public static class ScanResult implements Parcelable { public static class ScanResult implements Parcelable {