From 0b9bcf0f9e25122f9ee351aa9c889ebb01a238f5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 5 May 2018 16:26:52 +0530 Subject: global: Cleanup line lengths and misc lint warnings I know we decided to ditch the idea of shutting up "Exception thrown with empty param" warnings but this pesters me too much and we can instead just treat this as a weird future proofing thing if and when we end up needing the exception messages. Signed-off-by: Harsh Shandilya --- app/src/main/java/com/wireguard/config/IPCidr.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/com/wireguard/config') diff --git a/app/src/main/java/com/wireguard/config/IPCidr.java b/app/src/main/java/com/wireguard/config/IPCidr.java index dd649fc5..bfa92e07 100644 --- a/app/src/main/java/com/wireguard/config/IPCidr.java +++ b/app/src/main/java/com/wireguard/config/IPCidr.java @@ -15,6 +15,7 @@ public class IPCidr { private final InetAddress address; private int cidr; + @SuppressWarnings("MagicNumber") public IPCidr(String in) { cidr = -1; final int slash = in.lastIndexOf('/'); -- cgit v1.2.3