From 137be8d1012e4b6fabcd0f2f1827cdf9a7f33f10 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 17 Aug 2021 10:39:27 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/UriHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/UriHelper.java b/app/src/main/java/eu/faircode/email/UriHelper.java index 530f62d257..2679d3f80e 100644 --- a/app/src/main/java/eu/faircode/email/UriHelper.java +++ b/app/src/main/java/eu/faircode/email/UriHelper.java @@ -22,6 +22,8 @@ package eu.faircode.email; import android.content.Context; import android.text.TextUtils; +import androidx.annotation.NonNull; + import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; @@ -46,7 +48,7 @@ public class UriHelper { return (host != null && _getSuffix(context, host) != null); } - private static String _getSuffix(Context context, String host) { + private static String _getSuffix(Context context, @NonNull String host) { ensureSuffixList(context); String h = host.toLowerCase(Locale.ROOT);