Skip to content

Commit 8ec279f

Browse files
committed
删除多余的import
1 parent da1f451 commit 8ec279f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tunnel/src/main/java/com/wireguard/config/InetEndpoint.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
package com.wireguard.config;
77

8-
import android.widget.Toast;
9-
108
import com.wireguard.util.NonNullForAll;
119

1210
import org.xbill.DNS.Lookup;
@@ -25,15 +23,11 @@
2523
import java.net.UnknownHostException;
2624
import java.time.Duration;
2725
import java.time.Instant;
28-
import java.util.List;
2926
import java.util.Optional;
3027
import java.util.regex.Pattern;
3128

3229
import androidx.annotation.Nullable;
3330

34-
import static com.wireguard.android.BR.endpoint;
35-
import static com.wireguard.android.BR.endpoint;
36-
3731

3832
/**
3933
* An external endpoint (host and port) used to connect to a WireGuard {@link Peer}.
@@ -150,7 +144,7 @@ public Optional<InetEndpoint> getResolved() {
150144
if (Pattern.matches(IP_PORT_REGEX, recordValue)) {
151145
final String[] hostPort = Pattern.compile(":").split(recordValue);
152146
final int resPort = Integer.parseInt(hostPort[1], 10);
153-
if (resPort > 0 && resPort <=65535) {
147+
if (resPort > 0 && resPort <= 65535) {
154148
resolved = new InetEndpoint(hostPort[0], true, resPort);
155149
}
156150
}

0 commit comments

Comments
 (0)