Supress false-positive DefaultLocale warnings
We decided in 402472237e8f that it's a bad idea for our use-case Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
committed by
Jason A. Donenfeld
parent
c38f6c471d
commit
6d3f1e00a5
@@ -6,6 +6,7 @@
|
||||
|
||||
package com.wireguard.config;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.databinding.BaseObservable;
|
||||
import android.databinding.Bindable;
|
||||
@@ -71,6 +72,7 @@ public class Peer {
|
||||
return endpoint;
|
||||
}
|
||||
|
||||
@SuppressLint("DefaultLocale")
|
||||
@Nullable
|
||||
private String getEndpointString() {
|
||||
if (endpoint == null)
|
||||
@@ -102,6 +104,7 @@ public class Peer {
|
||||
return publicKey;
|
||||
}
|
||||
|
||||
@SuppressLint("DefaultLocale")
|
||||
public String getResolvedEndpointString() throws UnknownHostException {
|
||||
if (endpoint == null)
|
||||
throw new UnknownHostException("{empty}");
|
||||
|
||||
Reference in New Issue
Block a user