diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 12:21:35 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 12:21:35 -0600 |
commit | 40ebf8006e46f8857340648d7cea234ed699aed7 (patch) | |
tree | d52d5157884dec4f9cdadc895a2e66d20704249b /tunnel/src/main/java/com/wireguard/config | |
parent | 8e8643122eb5783d4412c8a81fb03cc789c3f77c (diff) |
global: optimize imports
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/src/main/java/com/wireguard/config')
5 files changed, 9 insertions, 16 deletions
diff --git a/tunnel/src/main/java/com/wireguard/config/BadConfigException.java b/tunnel/src/main/java/com/wireguard/config/BadConfigException.java index 89b3af2c..f1577e91 100644 --- a/tunnel/src/main/java/com/wireguard/config/BadConfigException.java +++ b/tunnel/src/main/java/com/wireguard/config/BadConfigException.java @@ -5,12 +5,11 @@ package com.wireguard.config; +import com.wireguard.crypto.KeyFormatException; import com.wireguard.util.NonNullForAll; import androidx.annotation.Nullable; -import com.wireguard.crypto.KeyFormatException; - @NonNullForAll public class BadConfigException extends Exception { private final Location location; diff --git a/tunnel/src/main/java/com/wireguard/config/Config.java b/tunnel/src/main/java/com/wireguard/config/Config.java index f86eb6fd..c45dccb6 100644 --- a/tunnel/src/main/java/com/wireguard/config/Config.java +++ b/tunnel/src/main/java/com/wireguard/config/Config.java @@ -5,13 +5,10 @@ package com.wireguard.config; -import com.wireguard.util.NonNullForAll; - -import androidx.annotation.Nullable; - import com.wireguard.config.BadConfigException.Location; import com.wireguard.config.BadConfigException.Reason; import com.wireguard.config.BadConfigException.Section; +import com.wireguard.util.NonNullForAll; import java.io.BufferedReader; import java.io.IOException; @@ -25,6 +22,8 @@ import java.util.List; import java.util.Objects; import java.util.Set; +import androidx.annotation.Nullable; + /** * Represents the contents of a wg-quick configuration file, made up of one or more "Interface" * sections (combined together), and zero or more "Peer" sections (treated individually). diff --git a/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java b/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java index 69c60806..0120de0e 100644 --- a/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java +++ b/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java @@ -7,8 +7,6 @@ package com.wireguard.config; import com.wireguard.util.NonNullForAll; -import androidx.annotation.Nullable; - import org.threeten.bp.Duration; import org.threeten.bp.Instant; @@ -19,6 +17,7 @@ import java.net.URISyntaxException; import java.net.UnknownHostException; import java.util.regex.Pattern; +import androidx.annotation.Nullable; import java9.util.Optional; diff --git a/tunnel/src/main/java/com/wireguard/config/Interface.java b/tunnel/src/main/java/com/wireguard/config/Interface.java index efe00ce7..32621d2f 100644 --- a/tunnel/src/main/java/com/wireguard/config/Interface.java +++ b/tunnel/src/main/java/com/wireguard/config/Interface.java @@ -5,16 +5,13 @@ package com.wireguard.config; -import com.wireguard.util.NonNullForAll; - -import androidx.annotation.Nullable; - import com.wireguard.config.BadConfigException.Location; import com.wireguard.config.BadConfigException.Reason; import com.wireguard.config.BadConfigException.Section; import com.wireguard.crypto.Key; import com.wireguard.crypto.KeyFormatException; import com.wireguard.crypto.KeyPair; +import com.wireguard.util.NonNullForAll; import java.net.InetAddress; import java.util.Collection; @@ -25,6 +22,7 @@ import java.util.Locale; import java.util.Objects; import java.util.Set; +import androidx.annotation.Nullable; import java9.util.Lists; import java9.util.Optional; import java9.util.stream.Collectors; diff --git a/tunnel/src/main/java/com/wireguard/config/Peer.java b/tunnel/src/main/java/com/wireguard/config/Peer.java index ef91a306..984dbe9c 100644 --- a/tunnel/src/main/java/com/wireguard/config/Peer.java +++ b/tunnel/src/main/java/com/wireguard/config/Peer.java @@ -5,15 +5,12 @@ package com.wireguard.config; -import com.wireguard.util.NonNullForAll; - -import androidx.annotation.Nullable; - import com.wireguard.config.BadConfigException.Location; import com.wireguard.config.BadConfigException.Reason; import com.wireguard.config.BadConfigException.Section; import com.wireguard.crypto.Key; import com.wireguard.crypto.KeyFormatException; +import com.wireguard.util.NonNullForAll; import java.util.Collection; import java.util.Collections; @@ -22,6 +19,7 @@ import java.util.Locale; import java.util.Objects; import java.util.Set; +import androidx.annotation.Nullable; import java9.util.Optional; /** |